Logo Search packages:      
Sourcecode: gnome-compiz-manager version File versions

gcp-page-workspaces.c

/* Generated by GOB (v2.0.14)   (do not edit directly) */

/* End world hunger, donate to the World Food Programme, http://www.wfp.org */

#define GOB_VERSION_MAJOR 2
#define GOB_VERSION_MINOR 0
#define GOB_VERSION_PATCHLEVEL 14

#define selfp (self->_priv)

#include <string.h> /* memset() */

#include "gcp-page-workspaces.h"

#ifdef G_LIKELY
#define ___GOB_LIKELY(expr) G_LIKELY(expr)
#define ___GOB_UNLIKELY(expr) G_UNLIKELY(expr)
#else /* ! G_LIKELY */
#define ___GOB_LIKELY(expr) (expr)
#define ___GOB_UNLIKELY(expr) (expr)
#endif /* G_LIKELY */

#line 31 "gcp-page-workspaces.gob"

#include "gcm-plugin.h"
#include "gcm-entry-shortcut.h"
#include "gcp-top-bottom-dialog.h"
      
/* For testing propose use the local (not installed) glade file */
#define GCP_PAGE_WORKSPACES_GLADE_FILE PACKAGE_DATA_DIR"/gnome-compiz-manager/glade/gcp-page-workspaces.glade"
/* #define GCP_PAGE_WORKSPACES_GLADE_FILE "data/gcp-page-workspaces.glade" */

GCM_PLUGIN_DEFINE(gcp_page_workspaces);

#line 36 "gcp-page-workspaces.c"
/* self casting macros */
#define SELF(x) GCP_PAGE_WORKSPACES(x)
#define SELF_CONST(x) GCP_PAGE_WORKSPACES_CONST(x)
#define IS_SELF(x) GCP_IS_PAGE_WORKSPACES(x)
#define TYPE_SELF GCP_TYPE_PAGE_WORKSPACES
#define SELF_CLASS(x) GCP_PAGE_WORKSPACES_CLASS(x)

#define SELF_GET_CLASS(x) GCP_PAGE_WORKSPACES_GET_CLASS(x)

/* self typedefs */
typedef GCPPageWorkspaces Self;
typedef GCPPageWorkspacesClass SelfClass;

struct _GCPPageWorkspacesPrivate {
#line 0 "gcp-page-workspaces.gob"
      GladeXML * _glade_xml;
#line 45 "gcp-page-workspaces.gob"
      GCMGLOption * number_of_desktops;
#line 47 "gcp-page-workspaces.gob"
      GCMGLOption * hsize;
#line 49 "gcp-page-workspaces.gob"
      GCMGLOption * vsize;
#line 51 "gcp-page-workspaces.gob"
      GCMGLOption * inside;
#line 53 "gcp-page-workspaces.gob"
      GCMGLOption * skydome;
#line 55 "gcp-page-workspaces.gob"
      GCMGLOption * skydome_animated;
#line 57 "gcp-page-workspaces.gob"
      GCMGLOption * skydome_image;
#line 59 "gcp-page-workspaces.gob"
      GCMGLOption * flip_move;
#line 61 "gcp-page-workspaces.gob"
      GCMGLOption * flip_dnd;
#line 63 "gcp-page-workspaces.gob"
      GCMGLOption * flip_pointer;
#line 65 "gcp-page-workspaces.gob"
      GCMGLOption * flip_time;
#line 67 "gcp-page-workspaces.gob"
      GtkWidget * top_bottom_window;
#line 69 "gcp-page-workspaces.gob"
      GCMGLOption * plane_up_edge;
#line 71 "gcp-page-workspaces.gob"
      GCMGLOption * plane_down_edge;
#line 73 "gcp-page-workspaces.gob"
      GCMGLOption * plane_right_edge;
#line 75 "gcp-page-workspaces.gob"
      GCMGLOption * plane_left_edge;
#line 77 "gcp-page-workspaces.gob"
      GtkRadioButton * classic_radiobutton;
#line 78 "gcp-page-workspaces.gob"
      GtkRadioButton * cube_rotation_radiobutton;
#line 79 "gcp-page-workspaces.gob"
      GtkRadioButton * plane_slide_radiobutton;
#line 80 "gcp-page-workspaces.gob"
      GtkNotebook * workspaces_notebook;
#line 81 "gcp-page-workspaces.gob"
      GtkSpinButton * workspaces_number_spinbutton;
#line 82 "gcp-page-workspaces.gob"
      GtkSpinButton * viewports_number_spinbutton;
#line 83 "gcp-page-workspaces.gob"
      GtkSpinButton * viewports_hsize_spinbutton;
#line 84 "gcp-page-workspaces.gob"
      GtkSpinButton * viewports_vsize_spinbutton;
#line 85 "gcp-page-workspaces.gob"
      GtkCheckButton * cube_inside_checkbutton;
#line 86 "gcp-page-workspaces.gob"
      GtkCheckButton * cube_skydome_checkbutton;
#line 87 "gcp-page-workspaces.gob"
      GtkCheckButton * cube_skydome_animate_checkbutton;
#line 88 "gcp-page-workspaces.gob"
      GtkAlignment * cube_skydome_alignment;
#line 89 "gcp-page-workspaces.gob"
      GtkFileChooserButton * cube_skydome_filechooserbutton;
#line 90 "gcp-page-workspaces.gob"
      GtkCheckButton * rotate_flip_move_checkbutton;
#line 91 "gcp-page-workspaces.gob"
      GtkCheckButton * rotate_flip_pointer_checkbutton;
#line 92 "gcp-page-workspaces.gob"
      GtkCheckButton * rotate_flip_dnd_checkbutton;
#line 93 "gcp-page-workspaces.gob"
      GtkCheckButton * slide_pointer_checkbutton;
#line 94 "gcp-page-workspaces.gob"
      GtkScale * rotate_flip_hscale;
#line 121 "gcp-page-workspaces.c"
};
/* here are local prototypes */
static void gcp_page_workspaces_init (GCPPageWorkspaces * o) G_GNUC_UNUSED;
static void gcp_page_workspaces_class_init (GCPPageWorkspacesClass * c) G_GNUC_UNUSED;
static gboolean ___2_gcp_page_workspaces_construct (GCMPage * page) G_GNUC_UNUSED;
static void gcp_page_workspaces_get_options (GCPPageWorkspaces * self) G_GNUC_UNUSED;
static void gcp_page_workspaces_init_effect (GCPPageWorkspaces * self) G_GNUC_UNUSED;
void  gcp_page_workspaces_on_classic_radiobutton_toggled    (GCPPageWorkspaces * self, GtkToggleButton * button);
void  gcp_page_workspaces_on_cube_rotation_radiobutton_toggled    (GCPPageWorkspaces * self, GtkToggleButton * button);
void  gcp_page_workspaces_on_plane_slide_radiobutton_toggled      (GCPPageWorkspaces * self, GtkToggleButton * button);
static void gcp_page_workspaces_init_viewports (GCPPageWorkspaces * self) G_GNUC_UNUSED;
void  gcp_page_workspaces_on_workspaces_number_spinbutton_value_changed (GCPPageWorkspaces * self, GtkScrollType * scroll, GtkSpinButton * button);
void  gcp_page_workspaces_on_viewports_number_spinbutton_value_changed  (GCPPageWorkspaces * self, GtkScrollType * scroll, GtkSpinButton * button);
void  gcp_page_workspaces_on_viewports_hsize_spinbutton_value_changed   (GCPPageWorkspaces * self, GtkScrollType * scroll, GtkSpinButton * button);
void  gcp_page_workspaces_on_viewports_vsize_spinbutton_value_changed   (GCPPageWorkspaces * self, GtkScrollType * scroll, GtkSpinButton * button);
static void gcp_page_workspaces_init_cube (GCPPageWorkspaces * self) G_GNUC_UNUSED;
void  gcp_page_workspaces_on_cube_top_bottom_button_clicked (GCPPageWorkspaces * self, GtkWidget * button);
void  gcp_page_workspaces_on_cube_inside_checkbutton_toggled      (GCPPageWorkspaces * self, GtkWidget * button);
void  gcp_page_workspaces_on_cube_skydome_checkbutton_toggled     (GCPPageWorkspaces * self, GtkWidget * button);
void  gcp_page_workspaces_on_cube_skydome_animate_checkbutton_toggled   (GCPPageWorkspaces * self, GtkWidget * button);
void  gcp_page_workspaces_on_cube_skydome_filechooserbutton_selection_changed (GCPPageWorkspaces * self, GtkWidget * button);
static void gcp_page_workspaces_init_rotate (GCPPageWorkspaces * self) G_GNUC_UNUSED;
void  gcp_page_workspaces_on_rotate_flip_move_checkbutton_toggled (GCPPageWorkspaces * self, GtkWidget * button);
void  gcp_page_workspaces_on_rotate_flip_pointer_checkbutton_toggled    (GCPPageWorkspaces * self, GtkWidget * button);
void  gcp_page_workspaces_on_rotate_flip_dnd_checkbutton_toggled  (GCPPageWorkspaces * self, GtkWidget * button);
void  gcp_page_workspaces_on_rotate_flip_hscale_value_changed     (GCPPageWorkspaces * self, GtkWidget * scale);
static void gcp_page_workspaces_init_slide (GCPPageWorkspaces * self) G_GNUC_UNUSED;
void  gcp_page_workspaces_on_slide_pointer_checkbutton_toggled    (GCPPageWorkspaces * self, GtkWidget * button);

/* pointer to the class of our parent */
static GCMPageClass *parent_class = NULL;

/* Short form macros */
#define self_get_type gcp_page_workspaces_get_type
#define self_get_options gcp_page_workspaces_get_options
#define self_init_effect gcp_page_workspaces_init_effect
#define self_on_classic_radiobutton_toggled gcp_page_workspaces_on_classic_radiobutton_toggled
#define self_on_cube_rotation_radiobutton_toggled gcp_page_workspaces_on_cube_rotation_radiobutton_toggled
#define self_on_plane_slide_radiobutton_toggled gcp_page_workspaces_on_plane_slide_radiobutton_toggled
#define self_init_viewports gcp_page_workspaces_init_viewports
#define self_on_workspaces_number_spinbutton_value_changed gcp_page_workspaces_on_workspaces_number_spinbutton_value_changed
#define self_on_viewports_number_spinbutton_value_changed gcp_page_workspaces_on_viewports_number_spinbutton_value_changed
#define self_on_viewports_hsize_spinbutton_value_changed gcp_page_workspaces_on_viewports_hsize_spinbutton_value_changed
#define self_on_viewports_vsize_spinbutton_value_changed gcp_page_workspaces_on_viewports_vsize_spinbutton_value_changed
#define self_init_cube gcp_page_workspaces_init_cube
#define self_on_cube_top_bottom_button_clicked gcp_page_workspaces_on_cube_top_bottom_button_clicked
#define self_on_cube_inside_checkbutton_toggled gcp_page_workspaces_on_cube_inside_checkbutton_toggled
#define self_on_cube_skydome_checkbutton_toggled gcp_page_workspaces_on_cube_skydome_checkbutton_toggled
#define self_on_cube_skydome_animate_checkbutton_toggled gcp_page_workspaces_on_cube_skydome_animate_checkbutton_toggled
#define self_on_cube_skydome_filechooserbutton_selection_changed gcp_page_workspaces_on_cube_skydome_filechooserbutton_selection_changed
#define self_init_rotate gcp_page_workspaces_init_rotate
#define self_on_rotate_flip_move_checkbutton_toggled gcp_page_workspaces_on_rotate_flip_move_checkbutton_toggled
#define self_on_rotate_flip_pointer_checkbutton_toggled gcp_page_workspaces_on_rotate_flip_pointer_checkbutton_toggled
#define self_on_rotate_flip_dnd_checkbutton_toggled gcp_page_workspaces_on_rotate_flip_dnd_checkbutton_toggled
#define self_on_rotate_flip_hscale_value_changed gcp_page_workspaces_on_rotate_flip_hscale_value_changed
#define self_init_slide gcp_page_workspaces_init_slide
#define self_on_slide_pointer_checkbutton_toggled gcp_page_workspaces_on_slide_pointer_checkbutton_toggled
/* a macro for creating a new object of our type */
#define GET_NEW ((GCPPageWorkspaces *)g_object_new(gcp_page_workspaces_get_type(), NULL))

/* a function for creating a new object of our type */
#include <stdarg.h>
static GCPPageWorkspaces * GET_NEW_VARG (const char *first, ...) G_GNUC_UNUSED;
static GCPPageWorkspaces *
GET_NEW_VARG (const char *first, ...)
{
      GCPPageWorkspaces *ret;
      va_list ap;
      va_start (ap, first);
      ret = (GCPPageWorkspaces *)g_object_new_valist (gcp_page_workspaces_get_type (), first, ap);
      va_end (ap);
      return ret;
}

/* a function to connect glade callback */
static void
___glade_xml_connect_foreach(const gchar *handler_name,
GObject *object,
const gchar *signal_name,
const gchar *signal_data,
GObject *connect_object,
gboolean after,
gpointer user_data)
{
      static GModule * allsymbols = NULL;
      
      if (!allsymbols) allsymbols = g_module_open(NULL, 0);
      if (allsymbols) {
            gchar * func_name = g_strdup_printf("gcp_page_workspaces_%s", handler_name);
            GCallback func;

            if (!g_module_symbol(allsymbols, func_name, (gpointer)&func)){
                  if (!g_module_symbol(allsymbols, handler_name, (gpointer)&func)) {
                        g_warning("could not find signal handler '%s'.", func_name);
                        g_free(func_name);
                        return;
                  }
            }
            if (after)
                  g_signal_connect_data(object, signal_name, func, user_data, NULL, G_CONNECT_AFTER | G_CONNECT_SWAPPED);
            else
                  g_signal_connect_data(object, signal_name, func, user_data, NULL, G_CONNECT_SWAPPED);
            g_free(func_name);
      }
}


static void
___finalize(GObject *obj_self)
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::finalize"
      GCPPageWorkspaces *self G_GNUC_UNUSED = GCP_PAGE_WORKSPACES (obj_self);
      gpointer priv G_GNUC_UNUSED = self->_priv;
      if(G_OBJECT_CLASS(parent_class)->finalize) \
            (* G_OBJECT_CLASS(parent_class)->finalize)(obj_self);
      if(self->_priv->_glade_xml) { g_object_unref ((gpointer) self->_priv->_glade_xml); self->_priv->_glade_xml = NULL; }
#line 46 "gcp-page-workspaces.gob"
      if(self->_priv->number_of_desktops) { g_object_unref ((gpointer) self->_priv->number_of_desktops); self->_priv->number_of_desktops = NULL; }
#line 240 "gcp-page-workspaces.c"
#line 48 "gcp-page-workspaces.gob"
      if(self->_priv->hsize) { g_object_unref ((gpointer) self->_priv->hsize); self->_priv->hsize = NULL; }
#line 243 "gcp-page-workspaces.c"
#line 50 "gcp-page-workspaces.gob"
      if(self->_priv->vsize) { g_object_unref ((gpointer) self->_priv->vsize); self->_priv->vsize = NULL; }
#line 246 "gcp-page-workspaces.c"
#line 52 "gcp-page-workspaces.gob"
      if(self->_priv->inside) { g_object_unref ((gpointer) self->_priv->inside); self->_priv->inside = NULL; }
#line 249 "gcp-page-workspaces.c"
#line 54 "gcp-page-workspaces.gob"
      if(self->_priv->skydome) { g_object_unref ((gpointer) self->_priv->skydome); self->_priv->skydome = NULL; }
#line 252 "gcp-page-workspaces.c"
#line 56 "gcp-page-workspaces.gob"
      if(self->_priv->skydome_animated) { g_object_unref ((gpointer) self->_priv->skydome_animated); self->_priv->skydome_animated = NULL; }
#line 255 "gcp-page-workspaces.c"
#line 58 "gcp-page-workspaces.gob"
      if(self->_priv->skydome_image) { g_object_unref ((gpointer) self->_priv->skydome_image); self->_priv->skydome_image = NULL; }
#line 258 "gcp-page-workspaces.c"
#line 60 "gcp-page-workspaces.gob"
      if(self->_priv->flip_move) { g_object_unref ((gpointer) self->_priv->flip_move); self->_priv->flip_move = NULL; }
#line 261 "gcp-page-workspaces.c"
#line 62 "gcp-page-workspaces.gob"
      if(self->_priv->flip_dnd) { g_object_unref ((gpointer) self->_priv->flip_dnd); self->_priv->flip_dnd = NULL; }
#line 264 "gcp-page-workspaces.c"
#line 64 "gcp-page-workspaces.gob"
      if(self->_priv->flip_pointer) { g_object_unref ((gpointer) self->_priv->flip_pointer); self->_priv->flip_pointer = NULL; }
#line 267 "gcp-page-workspaces.c"
#line 66 "gcp-page-workspaces.gob"
      if(self->_priv->flip_time) { g_object_unref ((gpointer) self->_priv->flip_time); self->_priv->flip_time = NULL; }
#line 270 "gcp-page-workspaces.c"
#line 68 "gcp-page-workspaces.gob"
      if(self->_priv->top_bottom_window) { g_object_unref ((gpointer) self->_priv->top_bottom_window); self->_priv->top_bottom_window = NULL; }
#line 273 "gcp-page-workspaces.c"
#line 70 "gcp-page-workspaces.gob"
      if(self->_priv->plane_up_edge) { g_object_unref ((gpointer) self->_priv->plane_up_edge); self->_priv->plane_up_edge = NULL; }
#line 276 "gcp-page-workspaces.c"
#line 72 "gcp-page-workspaces.gob"
      if(self->_priv->plane_down_edge) { g_object_unref ((gpointer) self->_priv->plane_down_edge); self->_priv->plane_down_edge = NULL; }
#line 279 "gcp-page-workspaces.c"
#line 74 "gcp-page-workspaces.gob"
      if(self->_priv->plane_right_edge) { g_object_unref ((gpointer) self->_priv->plane_right_edge); self->_priv->plane_right_edge = NULL; }
#line 282 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->plane_left_edge) { g_object_unref ((gpointer) self->_priv->plane_left_edge); self->_priv->plane_left_edge = NULL; }
#line 285 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->classic_radiobutton) { g_object_unref ((gpointer) self->_priv->classic_radiobutton); self->_priv->classic_radiobutton = NULL; }
#line 288 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->cube_rotation_radiobutton) { g_object_unref ((gpointer) self->_priv->cube_rotation_radiobutton); self->_priv->cube_rotation_radiobutton = NULL; }
#line 291 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->plane_slide_radiobutton) { g_object_unref ((gpointer) self->_priv->plane_slide_radiobutton); self->_priv->plane_slide_radiobutton = NULL; }
#line 294 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->workspaces_notebook) { g_object_unref ((gpointer) self->_priv->workspaces_notebook); self->_priv->workspaces_notebook = NULL; }
#line 297 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->workspaces_number_spinbutton) { g_object_unref ((gpointer) self->_priv->workspaces_number_spinbutton); self->_priv->workspaces_number_spinbutton = NULL; }
#line 300 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->viewports_number_spinbutton) { g_object_unref ((gpointer) self->_priv->viewports_number_spinbutton); self->_priv->viewports_number_spinbutton = NULL; }
#line 303 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->viewports_hsize_spinbutton) { g_object_unref ((gpointer) self->_priv->viewports_hsize_spinbutton); self->_priv->viewports_hsize_spinbutton = NULL; }
#line 306 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->viewports_vsize_spinbutton) { g_object_unref ((gpointer) self->_priv->viewports_vsize_spinbutton); self->_priv->viewports_vsize_spinbutton = NULL; }
#line 309 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->cube_inside_checkbutton) { g_object_unref ((gpointer) self->_priv->cube_inside_checkbutton); self->_priv->cube_inside_checkbutton = NULL; }
#line 312 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->cube_skydome_checkbutton) { g_object_unref ((gpointer) self->_priv->cube_skydome_checkbutton); self->_priv->cube_skydome_checkbutton = NULL; }
#line 315 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->cube_skydome_animate_checkbutton) { g_object_unref ((gpointer) self->_priv->cube_skydome_animate_checkbutton); self->_priv->cube_skydome_animate_checkbutton = NULL; }
#line 318 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->cube_skydome_alignment) { g_object_unref ((gpointer) self->_priv->cube_skydome_alignment); self->_priv->cube_skydome_alignment = NULL; }
#line 321 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->cube_skydome_filechooserbutton) { g_object_unref ((gpointer) self->_priv->cube_skydome_filechooserbutton); self->_priv->cube_skydome_filechooserbutton = NULL; }
#line 324 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->rotate_flip_move_checkbutton) { g_object_unref ((gpointer) self->_priv->rotate_flip_move_checkbutton); self->_priv->rotate_flip_move_checkbutton = NULL; }
#line 327 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->rotate_flip_pointer_checkbutton) { g_object_unref ((gpointer) self->_priv->rotate_flip_pointer_checkbutton); self->_priv->rotate_flip_pointer_checkbutton = NULL; }
#line 330 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->rotate_flip_dnd_checkbutton) { g_object_unref ((gpointer) self->_priv->rotate_flip_dnd_checkbutton); self->_priv->rotate_flip_dnd_checkbutton = NULL; }
#line 333 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->slide_pointer_checkbutton) { g_object_unref ((gpointer) self->_priv->slide_pointer_checkbutton); self->_priv->slide_pointer_checkbutton = NULL; }
#line 336 "gcp-page-workspaces.c"
#line 76 "gcp-page-workspaces.gob"
      if(self->_priv->rotate_flip_hscale) { g_object_unref ((gpointer) self->_priv->rotate_flip_hscale); self->_priv->rotate_flip_hscale = NULL; }
#line 339 "gcp-page-workspaces.c"
}
#undef __GOB_FUNCTION__

static void 
gcp_page_workspaces_init (GCPPageWorkspaces * o G_GNUC_UNUSED)
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::init"
      o->_priv = G_TYPE_INSTANCE_GET_PRIVATE(o,GCP_TYPE_PAGE_WORKSPACES,GCPPageWorkspacesPrivate);
      {
      GtkWidget * root;
      o->_priv->_glade_xml = glade_xml_new(GCP_PAGE_WORKSPACES_GLADE_FILE, "workspaces_page", NULL);
      root = glade_xml_get_widget(o->_priv->_glade_xml, "workspaces_page");
      gtk_widget_show(root);
      gtk_container_add(GTK_CONTAINER(o), root);
      glade_xml_signal_autoconnect_full(o->_priv->_glade_xml, (GladeXMLConnectFunc)___glade_xml_connect_foreach, (gpointer)o);
}
      o->_priv->classic_radiobutton = (GtkRadioButton * )glade_xml_get_widget(o->_priv->_glade_xml, "classic_radiobutton");
      o->_priv->cube_rotation_radiobutton = (GtkRadioButton * )glade_xml_get_widget(o->_priv->_glade_xml, "cube_rotation_radiobutton");
      o->_priv->plane_slide_radiobutton = (GtkRadioButton * )glade_xml_get_widget(o->_priv->_glade_xml, "plane_slide_radiobutton");
      o->_priv->workspaces_notebook = (GtkNotebook * )glade_xml_get_widget(o->_priv->_glade_xml, "workspaces_notebook");
      o->_priv->workspaces_number_spinbutton = (GtkSpinButton * )glade_xml_get_widget(o->_priv->_glade_xml, "workspaces_number_spinbutton");
      o->_priv->viewports_number_spinbutton = (GtkSpinButton * )glade_xml_get_widget(o->_priv->_glade_xml, "viewports_number_spinbutton");
      o->_priv->viewports_hsize_spinbutton = (GtkSpinButton * )glade_xml_get_widget(o->_priv->_glade_xml, "viewports_hsize_spinbutton");
      o->_priv->viewports_vsize_spinbutton = (GtkSpinButton * )glade_xml_get_widget(o->_priv->_glade_xml, "viewports_vsize_spinbutton");
      o->_priv->cube_inside_checkbutton = (GtkCheckButton * )glade_xml_get_widget(o->_priv->_glade_xml, "cube_inside_checkbutton");
      o->_priv->cube_skydome_checkbutton = (GtkCheckButton * )glade_xml_get_widget(o->_priv->_glade_xml, "cube_skydome_checkbutton");
      o->_priv->cube_skydome_animate_checkbutton = (GtkCheckButton * )glade_xml_get_widget(o->_priv->_glade_xml, "cube_skydome_animate_checkbutton");
      o->_priv->cube_skydome_alignment = (GtkAlignment * )glade_xml_get_widget(o->_priv->_glade_xml, "cube_skydome_alignment");
      o->_priv->cube_skydome_filechooserbutton = (GtkFileChooserButton * )glade_xml_get_widget(o->_priv->_glade_xml, "cube_skydome_filechooserbutton");
      o->_priv->rotate_flip_move_checkbutton = (GtkCheckButton * )glade_xml_get_widget(o->_priv->_glade_xml, "rotate_flip_move_checkbutton");
      o->_priv->rotate_flip_pointer_checkbutton = (GtkCheckButton * )glade_xml_get_widget(o->_priv->_glade_xml, "rotate_flip_pointer_checkbutton");
      o->_priv->rotate_flip_dnd_checkbutton = (GtkCheckButton * )glade_xml_get_widget(o->_priv->_glade_xml, "rotate_flip_dnd_checkbutton");
      o->_priv->slide_pointer_checkbutton = (GtkCheckButton * )glade_xml_get_widget(o->_priv->_glade_xml, "slide_pointer_checkbutton");
      o->_priv->rotate_flip_hscale = (GtkScale * )glade_xml_get_widget(o->_priv->_glade_xml, "rotate_flip_hscale");
}
#undef __GOB_FUNCTION__
static void 
gcp_page_workspaces_class_init (GCPPageWorkspacesClass * c G_GNUC_UNUSED)
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::class_init"
      GObjectClass *g_object_class G_GNUC_UNUSED = (GObjectClass*) c;
      GCMPageClass *gcm_page_class = (GCMPageClass *)c;

      g_type_class_add_private(c,sizeof(GCPPageWorkspacesPrivate));

      parent_class = g_type_class_ref (GCM_TYPE_PAGE);

#line 102 "gcp-page-workspaces.gob"
      gcm_page_class->construct = ___2_gcp_page_workspaces_construct;
#line 389 "gcp-page-workspaces.c"
      g_object_class->finalize = ___finalize;
}
#undef __GOB_FUNCTION__



#line 96 "gcp-page-workspaces.gob"
GType 
gcp_page_workspaces_get_type (void)
#line 399 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::get_type"
{
#line 98 "gcp-page-workspaces.gob"
      
            return gcp_page_workspaces_type;
      }}
#line 407 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 102 "gcp-page-workspaces.gob"
static gboolean 
___2_gcp_page_workspaces_construct (GCMPage * page G_GNUC_UNUSED)
#line 413 "gcp-page-workspaces.c"
#define PARENT_HANDLER(___page) \
      ((GCM_PAGE_CLASS(parent_class)->construct)? \
            (* GCM_PAGE_CLASS(parent_class)->construct)(___page): \
            ((gboolean )0))
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::construct"
{
#line 104 "gcp-page-workspaces.gob"
      
            GCPPageWorkspaces * self = SELF(page);
            
            gtk_frame_set_shadow_type(GTK_FRAME(self), GTK_SHADOW_NONE);
            
            /* Activate plugin */
            gcm_gl_desktop_enable_plugin(GCM_PAGE(self)->gl_desktop, "gconf");
            
            /* Create top and bottom cube images window */
            selfp->top_bottom_window = 
                  gcp_top_bottom_dialog_new(gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, "cube"),
                                      gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, "rotate"));
            
            self_get_options(self);
            self_init_effect(self);
            self_init_viewports(self);
            self_init_cube(self);
            self_init_rotate(self);
            self_init_slide(self);
            
            return TRUE;
      }}
#line 444 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__
#undef PARENT_HANDLER

#line 127 "gcp-page-workspaces.gob"
static void 
gcp_page_workspaces_get_options (GCPPageWorkspaces * self)
#line 451 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::get_options"
#line 127 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 127 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 458 "gcp-page-workspaces.c"
{
#line 129 "gcp-page-workspaces.gob"
      
            GCMGLPlugin * cube = gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, 
                                                                                 "cube");
            GCMGLPlugin * rotate = gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, 
                                                                                   "rotate");
            GCMGLPlugin * plane = gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, 
                                                                                   "plane");
            
            selfp->number_of_desktops = gcm_gl_desktop_get_option(GCM_PAGE(self)->gl_desktop,
                                                                      "number_of_desktops",
                                                                      0);
            selfp->hsize = gcm_gl_desktop_get_option(GCM_PAGE(self)->gl_desktop,
                                                                      "hsize",
                                                                      0);
            selfp->vsize = gcm_gl_desktop_get_option(GCM_PAGE(self)->gl_desktop,
                                                                      "vsize",
                                                                      0);
            selfp->inside = gcm_gl_plugin_get_option(cube,
                                                                       "in",
                                                                       0);
            selfp->skydome = gcm_gl_plugin_get_option(cube,
                                                                        "skydome",
                                                                        0);
            selfp->skydome_animated = gcm_gl_plugin_get_option(cube,
                                                                                       "skydome_animated",
                                                                                 0);
            selfp->skydome_image = gcm_gl_plugin_get_option(cube,
                                                                                    "skydome_image",
                                                                              0);
            selfp->flip_move = gcm_gl_plugin_get_option(rotate,
                                                                              "edge_flip_move",
                                                                            GCM_GL_OPTION_SCREEN_ALL);
            selfp->flip_dnd = gcm_gl_plugin_get_option(rotate,
                                                                           "edge_flip_dnd",
                                                                           GCM_GL_OPTION_SCREEN_ALL);
            selfp->flip_pointer = gcm_gl_plugin_get_option(rotate,
                                                                                 "edge_flip_pointer",
                                                                                 GCM_GL_OPTION_SCREEN_ALL);
            selfp->flip_time = gcm_gl_plugin_get_option(rotate,
                                                                              "flip_time",
                                                                              GCM_GL_OPTION_SCREEN_ALL);
            selfp->plane_up_edge = gcm_gl_plugin_get_option(plane,
                                                                                  "plane_up_edge",
                                                                                    GCM_GL_OPTION_SCREEN_ALL);
            selfp->plane_down_edge = gcm_gl_plugin_get_option(plane,
                                                                                    "plane_down_edge",
                                                                                      GCM_GL_OPTION_SCREEN_ALL);
            selfp->plane_left_edge = gcm_gl_plugin_get_option(plane,
                                                                                      "plane_left_edge",
                                                                                      GCM_GL_OPTION_SCREEN_ALL);
            selfp->plane_right_edge = gcm_gl_plugin_get_option(plane,
                                                                                       "plane_right_edge",
                                                                                       GCM_GL_OPTION_SCREEN_ALL);

      }}
#line 516 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 185 "gcp-page-workspaces.gob"
static void 
gcp_page_workspaces_init_effect (GCPPageWorkspaces * self)
#line 522 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::init_effect"
#line 185 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 185 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 529 "gcp-page-workspaces.c"
{
#line 187 "gcp-page-workspaces.gob"
      
            GCMGLPlugin * cube = gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, 
                                                                                 "cube");
            GCMGLPlugin * plane = gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, 
                                                                                   "plane");
            gboolean cube_enabled = gcm_gl_desktop_plugin_is_active(GCM_PAGE(self)->gl_desktop, "cube");
            gboolean plane_enabled = gcm_gl_desktop_plugin_is_active(GCM_PAGE(self)->gl_desktop, "plane");
            GtkTooltips * tooltips;
            
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->classic_radiobutton), 
                                                       !cube_enabled && !plane_enabled);
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->cube_rotation_radiobutton), 
                                                       cube_enabled);
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->plane_slide_radiobutton), 
                                                       plane_enabled);
            
            if (!cube_enabled && !plane_enabled)
            {
                  gcm_gl_option_set_integer(selfp->hsize, 1);
                  gcm_gl_option_set_integer(selfp->vsize, 1);
            }
            if (cube_enabled || plane_enabled)
                  gcm_gl_option_set_integer(selfp->number_of_desktops, 1);
                  
            tooltips = gtk_tooltips_new();
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->cube_rotation_radiobutton),
                                           cube->info,
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->plane_slide_radiobutton),
                                           plane->info,
                                           NULL);
      }}
#line 564 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 220 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_classic_radiobutton_toggled (GCPPageWorkspaces * self, GtkToggleButton * button)
#line 570 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_classic_radiobutton_toggled"
#line 220 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 220 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 577 "gcp-page-workspaces.c"
{
#line 222 "gcp-page-workspaces.gob"
      
            if (gtk_toggle_button_get_active(button))
            {
                  gtk_notebook_set_current_page(selfp->workspaces_notebook, 0);
                  gcm_gl_desktop_disable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "plane");
                  gcm_gl_desktop_disable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "cube");
                  gcm_gl_desktop_disable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "rotate");
                  gtk_spin_button_set_value(selfp->viewports_number_spinbutton, 
                                                        (gdouble)1);
                  gtk_spin_button_set_value(selfp->viewports_hsize_spinbutton, 
                                                        (gdouble)1);
                  gtk_spin_button_set_value(selfp->viewports_vsize_spinbutton, 
                                                        (gdouble)1);
            }
      }}
#line 598 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 241 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_cube_rotation_radiobutton_toggled (GCPPageWorkspaces * self, GtkToggleButton * button)
#line 604 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_cube_rotation_radiobutton_toggled"
#line 241 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 241 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 611 "gcp-page-workspaces.c"
{
#line 243 "gcp-page-workspaces.gob"
      
            if (gtk_toggle_button_get_active(button))
            {
                  gtk_notebook_set_current_page(selfp->workspaces_notebook, 1);
                  gcm_gl_desktop_disable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "plane");
                  gcm_gl_desktop_enable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "cube");
                  gcm_gl_desktop_enable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "rotate");
                  gtk_spin_button_set_value(selfp->workspaces_number_spinbutton, 
                                                        (gdouble)1);
                  gtk_spin_button_set_value(selfp->viewports_vsize_spinbutton, 
                                                        (gdouble)1);
            }
      }}
#line 630 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 260 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_plane_slide_radiobutton_toggled (GCPPageWorkspaces * self, GtkToggleButton * button)
#line 636 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_plane_slide_radiobutton_toggled"
#line 260 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 260 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 643 "gcp-page-workspaces.c"
{
#line 262 "gcp-page-workspaces.gob"
      
            if (gtk_toggle_button_get_active(button))
            {
                  gtk_notebook_set_current_page(selfp->workspaces_notebook, 2);
                  gcm_gl_desktop_disable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "rotate");
                  gcm_gl_desktop_disable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "cube");
                  gcm_gl_desktop_enable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "plane");
                  gtk_spin_button_set_value(selfp->workspaces_number_spinbutton, 
                                                        (gdouble)1);
            }
      }}
#line 660 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 277 "gcp-page-workspaces.gob"
static void 
gcp_page_workspaces_init_viewports (GCPPageWorkspaces * self)
#line 666 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::init_viewports"
#line 277 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 277 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 673 "gcp-page-workspaces.c"
{
#line 279 "gcp-page-workspaces.gob"
      
            gint dnb = gcm_gl_option_get_integer(selfp->number_of_desktops);
            gint hnb = gcm_gl_option_get_integer(selfp->hsize);
            gint vnb = gcm_gl_option_get_integer(selfp->vsize);
            GtkTooltips * tooltips;
            
            gtk_spin_button_set_value(selfp->workspaces_number_spinbutton, (gdouble)dnb);
            gtk_spin_button_set_value(selfp->viewports_number_spinbutton, (gdouble)hnb);
            gtk_spin_button_set_value(selfp->viewports_hsize_spinbutton, (gdouble)hnb);
            gtk_spin_button_set_value(selfp->viewports_vsize_spinbutton, (gdouble)vnb);
            
            tooltips = gtk_tooltips_new();
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->workspaces_number_spinbutton),
                                           gcm_gl_option_get_description(selfp->number_of_desktops),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->viewports_number_spinbutton),
                                           gcm_gl_option_get_description(selfp->hsize),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->viewports_hsize_spinbutton),
                                           gcm_gl_option_get_description(selfp->hsize),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->viewports_vsize_spinbutton),
                                           gcm_gl_option_get_description(selfp->vsize),
                                           NULL);
      }}
#line 701 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 305 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_workspaces_number_spinbutton_value_changed (GCPPageWorkspaces * self, GtkScrollType * scroll, GtkSpinButton * button)
#line 707 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_workspaces_number_spinbutton_value_changed"
#line 305 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 305 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 714 "gcp-page-workspaces.c"
{
#line 308 "gcp-page-workspaces.gob"
      
            gint nb = gtk_spin_button_get_value_as_int(selfp->workspaces_number_spinbutton);
            gcm_gl_option_set_integer(selfp->number_of_desktops, nb);
      }}
#line 721 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 313 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_viewports_number_spinbutton_value_changed (GCPPageWorkspaces * self, GtkScrollType * scroll, GtkSpinButton * button)
#line 727 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_viewports_number_spinbutton_value_changed"
#line 313 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 313 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 734 "gcp-page-workspaces.c"
{
#line 316 "gcp-page-workspaces.gob"
      
            gint nb = gtk_spin_button_get_value_as_int(selfp->viewports_number_spinbutton);
            gcm_gl_option_set_integer(selfp->hsize, nb);
            gtk_spin_button_set_value(selfp->viewports_hsize_spinbutton, (gdouble)nb);
      }}
#line 742 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 322 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_viewports_hsize_spinbutton_value_changed (GCPPageWorkspaces * self, GtkScrollType * scroll, GtkSpinButton * button)
#line 748 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_viewports_hsize_spinbutton_value_changed"
#line 322 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 322 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 755 "gcp-page-workspaces.c"
{
#line 325 "gcp-page-workspaces.gob"
      
            gint nb = gtk_spin_button_get_value_as_int(selfp->viewports_hsize_spinbutton);
            gcm_gl_option_set_integer(selfp->hsize, nb);
            gtk_spin_button_set_value(selfp->viewports_number_spinbutton, (gdouble)nb);
      }}
#line 763 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 331 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_viewports_vsize_spinbutton_value_changed (GCPPageWorkspaces * self, GtkScrollType * scroll, GtkSpinButton * button)
#line 769 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_viewports_vsize_spinbutton_value_changed"
#line 331 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 331 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 776 "gcp-page-workspaces.c"
{
#line 334 "gcp-page-workspaces.gob"
      
            gint nb = gtk_spin_button_get_value_as_int(selfp->viewports_vsize_spinbutton);
            gcm_gl_option_set_integer(selfp->vsize, nb);
      }}
#line 783 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 339 "gcp-page-workspaces.gob"
static void 
gcp_page_workspaces_init_cube (GCPPageWorkspaces * self)
#line 789 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::init_cube"
#line 339 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 339 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 796 "gcp-page-workspaces.c"
{
#line 341 "gcp-page-workspaces.gob"
      
            gboolean inside = gcm_gl_option_get_boolean(selfp->inside);
            gboolean skydome = gcm_gl_option_get_boolean(selfp->skydome);
            gboolean animated = gcm_gl_option_get_boolean(selfp->skydome_animated);
            gchar * filename = gcm_gl_option_get_string(selfp->skydome_image);
            GtkFileFilter * filter;
            GtkTooltips * tooltips;
            
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->cube_inside_checkbutton),
                                                       inside);
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->cube_skydome_checkbutton),
                                                       skydome);
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->cube_skydome_animate_checkbutton),
                                                       animated);
            filter = gtk_file_filter_new ();    
            gtk_file_filter_add_pattern (filter, "*.svg");
            gtk_file_filter_add_pattern (filter, "*.png");
            gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (selfp->cube_skydome_filechooserbutton), 
                                                       filter);
            gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(selfp->cube_skydome_filechooserbutton),
                                                        filename);
            g_free(filename);
            g_signal_connect_swapped(selfp->cube_skydome_filechooserbutton, "selection-changed",
                                                 G_CALLBACK(self_on_cube_skydome_filechooserbutton_selection_changed), 
                                                 self);
            gtk_widget_set_sensitive(GTK_WIDGET(selfp->cube_skydome_alignment), skydome);
            
            tooltips = gtk_tooltips_new();
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->cube_inside_checkbutton),
                                           gcm_gl_option_get_description(selfp->inside),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->cube_skydome_checkbutton),
                                           gcm_gl_option_get_description(selfp->skydome),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->cube_skydome_animate_checkbutton),
                                           gcm_gl_option_get_description(selfp->skydome_animated),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->cube_skydome_filechooserbutton),
                                           gcm_gl_option_get_description(selfp->skydome_image),
                                           NULL);
      }}
#line 840 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 383 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_cube_top_bottom_button_clicked (GCPPageWorkspaces * self, GtkWidget * button)
#line 846 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_cube_top_bottom_button_clicked"
#line 383 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 383 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 853 "gcp-page-workspaces.c"
{
#line 385 "gcp-page-workspaces.gob"
      
            gtk_widget_show(selfp->top_bottom_window);
      }}
#line 859 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 389 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_cube_inside_checkbutton_toggled (GCPPageWorkspaces * self, GtkWidget * button)
#line 865 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_cube_inside_checkbutton_toggled"
#line 389 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 389 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 872 "gcp-page-workspaces.c"
{
#line 391 "gcp-page-workspaces.gob"
      
            gcm_gl_option_set_boolean(selfp->inside,
                  gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(selfp->cube_inside_checkbutton)));
      }}
#line 879 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 396 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_cube_skydome_checkbutton_toggled (GCPPageWorkspaces * self, GtkWidget * button)
#line 885 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_cube_skydome_checkbutton_toggled"
#line 396 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 396 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 892 "gcp-page-workspaces.c"
{
#line 398 "gcp-page-workspaces.gob"
      
            gboolean skydome = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(selfp->cube_skydome_checkbutton));
            gcm_gl_option_set_boolean(selfp->skydome, skydome);
            gtk_widget_set_sensitive(GTK_WIDGET(selfp->cube_skydome_alignment), skydome);
      }}
#line 900 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 404 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_cube_skydome_animate_checkbutton_toggled (GCPPageWorkspaces * self, GtkWidget * button)
#line 906 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_cube_skydome_animate_checkbutton_toggled"
#line 404 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 404 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 913 "gcp-page-workspaces.c"
{
#line 406 "gcp-page-workspaces.gob"
      
            gcm_gl_option_set_boolean(selfp->skydome_animated,
                  gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(selfp->cube_skydome_animate_checkbutton)));
      }}
#line 920 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 411 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_cube_skydome_filechooserbutton_selection_changed (GCPPageWorkspaces * self, GtkWidget * button)
#line 926 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_cube_skydome_filechooserbutton_selection_changed"
#line 411 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 411 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 933 "gcp-page-workspaces.c"
{
#line 413 "gcp-page-workspaces.gob"
      
            gchar * filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(selfp->cube_skydome_filechooserbutton));
            
            gcm_gl_option_set_string(selfp->skydome_image, filename);
            g_free(filename);
      }}
#line 942 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 420 "gcp-page-workspaces.gob"
static void 
gcp_page_workspaces_init_rotate (GCPPageWorkspaces * self)
#line 948 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::init_rotate"
#line 420 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 420 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 955 "gcp-page-workspaces.c"
{
#line 422 "gcp-page-workspaces.gob"
      
            gboolean flip_move = gcm_gl_option_get_boolean(selfp->flip_move);
            gboolean flip_dnd = gcm_gl_option_get_boolean(selfp->flip_dnd);
            gboolean flip_pointer = gcm_gl_option_get_boolean(selfp->flip_pointer);
            gint flip_time = gcm_gl_option_get_integer(selfp->flip_time);
            GtkTooltips * tooltips;
            
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->rotate_flip_move_checkbutton),
                                                       flip_move);
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->rotate_flip_dnd_checkbutton),
                                                       flip_dnd);
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->rotate_flip_pointer_checkbutton),
                                                       flip_pointer);
            gtk_range_set_value(GTK_RANGE(selfp->rotate_flip_hscale), flip_time);
            
            tooltips = gtk_tooltips_new();
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->rotate_flip_move_checkbutton),
                                           gcm_gl_option_get_description(selfp->flip_move),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->rotate_flip_dnd_checkbutton),
                                           gcm_gl_option_get_description(selfp->flip_dnd),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->rotate_flip_pointer_checkbutton),
                                           gcm_gl_option_get_description(selfp->flip_pointer),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->rotate_flip_hscale),
                                           gcm_gl_option_get_description(selfp->flip_time),
                                           NULL);
      }}
#line 987 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 452 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_rotate_flip_move_checkbutton_toggled (GCPPageWorkspaces * self, GtkWidget * button)
#line 993 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_rotate_flip_move_checkbutton_toggled"
#line 452 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 452 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 1000 "gcp-page-workspaces.c"
{
#line 454 "gcp-page-workspaces.gob"
      
            gcm_gl_option_set_boolean(selfp->flip_move,
                  gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(selfp->rotate_flip_move_checkbutton)));
      }}
#line 1007 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 459 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_rotate_flip_pointer_checkbutton_toggled (GCPPageWorkspaces * self, GtkWidget * button)
#line 1013 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_rotate_flip_pointer_checkbutton_toggled"
#line 459 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 459 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 1020 "gcp-page-workspaces.c"
{
#line 461 "gcp-page-workspaces.gob"
      
            gcm_gl_option_set_boolean(selfp->flip_pointer,
                  gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(selfp->rotate_flip_pointer_checkbutton)));
      }}
#line 1027 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 466 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_rotate_flip_dnd_checkbutton_toggled (GCPPageWorkspaces * self, GtkWidget * button)
#line 1033 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_rotate_flip_dnd_checkbutton_toggled"
#line 466 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 466 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 1040 "gcp-page-workspaces.c"
{
#line 468 "gcp-page-workspaces.gob"
      
            gcm_gl_option_set_boolean(selfp->flip_dnd,
                  gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(selfp->rotate_flip_dnd_checkbutton)));
      }}
#line 1047 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 473 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_rotate_flip_hscale_value_changed (GCPPageWorkspaces * self, GtkWidget * scale)
#line 1053 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_rotate_flip_hscale_value_changed"
#line 473 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 473 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 1060 "gcp-page-workspaces.c"
{
#line 475 "gcp-page-workspaces.gob"
      
            gdouble value = gtk_range_get_value(GTK_RANGE(selfp->rotate_flip_hscale));
            
            gcm_gl_option_set_integer(selfp->flip_time, (gint)value);
      }}
#line 1068 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 481 "gcp-page-workspaces.gob"
static void 
gcp_page_workspaces_init_slide (GCPPageWorkspaces * self)
#line 1074 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::init_slide"
#line 481 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 481 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 1081 "gcp-page-workspaces.c"
{
#line 483 "gcp-page-workspaces.gob"
      
            GSList * edge_top = gcm_gl_option_get_string_list(selfp->plane_up_edge);
            gboolean slide_on_pointer = TRUE;
            
            if (!edge_top || !g_slist_length(edge_top) || 
                  !edge_top->data || !g_ascii_strcasecmp(edge_top->data, "") ||
                  !g_ascii_strcasecmp(edge_top->data, "Disabled"))
                  slide_on_pointer = FALSE;
            if (edge_top) g_slist_free(edge_top);
                  
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->slide_pointer_checkbutton),
                                                       slide_on_pointer);
      }}
#line 1097 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 497 "gcp-page-workspaces.gob"
void 
gcp_page_workspaces_on_slide_pointer_checkbutton_toggled (GCPPageWorkspaces * self, GtkWidget * button)
#line 1103 "gcp-page-workspaces.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Workspaces::on_slide_pointer_checkbutton_toggled"
#line 497 "gcp-page-workspaces.gob"
      g_return_if_fail (self != NULL);
#line 497 "gcp-page-workspaces.gob"
      g_return_if_fail (GCP_IS_PAGE_WORKSPACES (self));
#line 1110 "gcp-page-workspaces.c"
{
#line 499 "gcp-page-workspaces.gob"
      
            gboolean slide_on_pointer = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(selfp->slide_pointer_checkbutton));
            GSList * edge_top = NULL;
            GSList * edge_bottom = NULL;
            GSList * edge_right = NULL;
            GSList * edge_left = NULL;
            
            if (slide_on_pointer)
            {
                  edge_top = g_slist_append(edge_top, "Top");
                  edge_bottom = g_slist_append(edge_bottom, "Bottom");
                  edge_right = g_slist_append(edge_right, "Right");
                  edge_left = g_slist_append(edge_left, "Left");
            }
            else
            {
                  edge_top = g_slist_append(edge_top, "Disabled");
                  edge_bottom = g_slist_append(edge_bottom, "Disabled");
                  edge_right = g_slist_append(edge_right, "Disabled");
                  edge_left = g_slist_append(edge_left, "Disabled");
            }
            
            gcm_gl_option_set_string_list(selfp->plane_up_edge, edge_top);
            g_slist_free(edge_top);
            gcm_gl_option_set_string_list(selfp->plane_down_edge, edge_bottom);
            g_slist_free(edge_bottom);
            gcm_gl_option_set_string_list(selfp->plane_left_edge, edge_left);
            g_slist_free(edge_left);
            gcm_gl_option_set_string_list(selfp->plane_right_edge, edge_right);
            g_slist_free(edge_right);
      }}
#line 1144 "gcp-page-workspaces.c"
#undef __GOB_FUNCTION__

#line 532 "gcp-page-workspaces.gob"

GCM_PLUGIN_FACTORY(GCPPageWorkspaces, GCM_TYPE_PAGE, gcp_page_workspaces);

#line 1151 "gcp-page-workspaces.c"

Generated by  Doxygen 1.6.0   Back to index