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

gcp-page-utility.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-utility.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-utility.gob"

#include "gcm-plugin.h"
#include "gcm-entry-shortcut.h"     

/* For testing propose use the local (not installed) glade file */
#define GCP_PAGE_UTILITY_GLADE_FILE PACKAGE_DATA_DIR"/gnome-compiz-manager/glade/gcp-page-utility.glade"
/*#define GCP_PAGE_UTILITY_GLADE_FILE "data/gcp-page-utility.glade" */

GCM_PLUGIN_DEFINE(gcp_page_utility);

#line 35 "gcp-page-utility.c"
/* self casting macros */
#define SELF(x) GCP_PAGE_UTILITY(x)
#define SELF_CONST(x) GCP_PAGE_UTILITY_CONST(x)
#define IS_SELF(x) GCP_IS_PAGE_UTILITY(x)
#define TYPE_SELF GCP_TYPE_PAGE_UTILITY
#define SELF_CLASS(x) GCP_PAGE_UTILITY_CLASS(x)

#define SELF_GET_CLASS(x) GCP_PAGE_UTILITY_GET_CLASS(x)

/* self typedefs */
typedef GCPPageUtility Self;
typedef GCPPageUtilityClass SelfClass;

struct _GCPPageUtilityPrivate {
#line 0 "gcp-page-utility.gob"
      GladeXML * _glade_xml;
#line 44 "gcp-page-utility.gob"
      GCMGLOption * annotate_fill_color;
#line 46 "gcp-page-utility.gob"
      GCMGLOption * annotate_line_width;
#line 48 "gcp-page-utility.gob"
      GCMGLOption * annotate_stroke_color;
#line 50 "gcp-page-utility.gob"
      GCMGLOption * annotate_stroke_width;
#line 52 "gcp-page-utility.gob"
      GCMGLOption * annotate_clear_key;
#line 54 "gcp-page-utility.gob"
      GCMGLOption * annotate_erase_button;
#line 56 "gcp-page-utility.gob"
      GCMGLOption * annotate_initiate_button;
#line 58 "gcp-page-utility.gob"
      GCMGLOption * screenshot_directory;
#line 60 "gcp-page-utility.gob"
      GCMGLOption * screenshot_initiate_button;
#line 62 "gcp-page-utility.gob"
      GCMGLOption * clone_initiate_button;
#line 64 "gcp-page-utility.gob"
      GtkCheckButton * annotate_checkbutton;
#line 65 "gcp-page-utility.gob"
      GtkAlignment * annotate_alignment;
#line 66 "gcp-page-utility.gob"
      GtkColorButton * annotate_fill_colorbutton;
#line 67 "gcp-page-utility.gob"
      GtkSpinButton * annotate_line_width_spinbutton;
#line 68 "gcp-page-utility.gob"
      GtkColorButton * annotate_stroke_colorbutton;
#line 69 "gcp-page-utility.gob"
      GtkSpinButton * annotate_stroke_width_spinbutton;
#line 70 "gcp-page-utility.gob"
      GtkTable * annotate_shortcuts_table;
#line 71 "gcp-page-utility.gob"
      GtkCheckButton * screenshot_checkbutton;
#line 72 "gcp-page-utility.gob"
      GtkAlignment * screenshot_alignment;
#line 73 "gcp-page-utility.gob"
      GtkColorButton * screenshot_filechooserbutton;
#line 74 "gcp-page-utility.gob"
      GtkTable * screenshot_shortcuts_table;
#line 75 "gcp-page-utility.gob"
      GtkCheckButton * clone_checkbutton;
#line 76 "gcp-page-utility.gob"
      GtkAlignment * clone_alignment;
#line 77 "gcp-page-utility.gob"
      GtkTable * clone_shortcuts_table;
#line 100 "gcp-page-utility.c"
};
/* here are local prototypes */
static void gcp_page_utility_init (GCPPageUtility * o) G_GNUC_UNUSED;
static void gcp_page_utility_class_init (GCPPageUtilityClass * c) G_GNUC_UNUSED;
static gboolean ___2_gcp_page_utility_construct (GCMPage * page) G_GNUC_UNUSED;
static void gcp_page_utility_get_options (GCPPageUtility * self) G_GNUC_UNUSED;
static void gcp_page_utility_init_annotate (GCPPageUtility * self) G_GNUC_UNUSED;
void  gcp_page_utility_on_annotate_checkbutton_toggled      (GCPPageUtility * self);
void  gcp_page_utility_on_annotate_fill_colorbutton_color_set     (GCPPageUtility * self);
void  gcp_page_utility_on_annotate_line_width_spinbutton_value_changed  (GCPPageUtility * self, GtkScrollType * scroll, GtkSpinButton * button);
void  gcp_page_utility_on_annotate_stroke_colorbutton_color_set   (GCPPageUtility * self);
void  gcp_page_utility_on_annotate_stroke_width_spinbutton_value_changed      (GCPPageUtility * self, GtkScrollType * scroll, GtkSpinButton * button);
static void gcp_page_utility_on_annotate_clear_entryshortcut_changed (GCPPageUtility * self, GCMEntryShortcut * entry) G_GNUC_UNUSED;
static void gcp_page_utility_on_annotate_erase_entryshortcut_changed (GCPPageUtility * self, GCMEntryShortcut * entry) G_GNUC_UNUSED;
static void gcp_page_utility_on_annotate_initiate_entryshortcut_changed (GCPPageUtility * self, GCMEntryShortcut * entry) G_GNUC_UNUSED;
static void gcp_page_utility_init_screenshot (GCPPageUtility * self) G_GNUC_UNUSED;
void  gcp_page_utility_on_screenshot_checkbutton_toggled    (GCPPageUtility * self);
void  gcp_page_utility_on_screenshot_filechooserbutton_selection_changed      (GCPPageUtility * self, GtkWidget * button);
static void gcp_page_utility_on_screenshot_initiate_entryshortcut_changed (GCPPageUtility * self, GCMEntryShortcut * entry) G_GNUC_UNUSED;
static void gcp_page_utility_init_clone (GCPPageUtility * self) G_GNUC_UNUSED;
void  gcp_page_utility_on_clone_checkbutton_toggled   (GCPPageUtility * self);
static void gcp_page_utility_on_clone_initiate_entryshortcut_changed (GCPPageUtility * self, GCMEntryShortcut * entry) G_GNUC_UNUSED;

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

/* Short form macros */
#define self_get_type gcp_page_utility_get_type
#define self_get_options gcp_page_utility_get_options
#define self_init_annotate gcp_page_utility_init_annotate
#define self_on_annotate_checkbutton_toggled gcp_page_utility_on_annotate_checkbutton_toggled
#define self_on_annotate_fill_colorbutton_color_set gcp_page_utility_on_annotate_fill_colorbutton_color_set
#define self_on_annotate_line_width_spinbutton_value_changed gcp_page_utility_on_annotate_line_width_spinbutton_value_changed
#define self_on_annotate_stroke_colorbutton_color_set gcp_page_utility_on_annotate_stroke_colorbutton_color_set
#define self_on_annotate_stroke_width_spinbutton_value_changed gcp_page_utility_on_annotate_stroke_width_spinbutton_value_changed
#define self_on_annotate_clear_entryshortcut_changed gcp_page_utility_on_annotate_clear_entryshortcut_changed
#define self_on_annotate_erase_entryshortcut_changed gcp_page_utility_on_annotate_erase_entryshortcut_changed
#define self_on_annotate_initiate_entryshortcut_changed gcp_page_utility_on_annotate_initiate_entryshortcut_changed
#define self_init_screenshot gcp_page_utility_init_screenshot
#define self_on_screenshot_checkbutton_toggled gcp_page_utility_on_screenshot_checkbutton_toggled
#define self_on_screenshot_filechooserbutton_selection_changed gcp_page_utility_on_screenshot_filechooserbutton_selection_changed
#define self_on_screenshot_initiate_entryshortcut_changed gcp_page_utility_on_screenshot_initiate_entryshortcut_changed
#define self_init_clone gcp_page_utility_init_clone
#define self_on_clone_checkbutton_toggled gcp_page_utility_on_clone_checkbutton_toggled
#define self_on_clone_initiate_entryshortcut_changed gcp_page_utility_on_clone_initiate_entryshortcut_changed
/* a macro for creating a new object of our type */
#define GET_NEW ((GCPPageUtility *)g_object_new(gcp_page_utility_get_type(), NULL))

/* a function for creating a new object of our type */
#include <stdarg.h>
static GCPPageUtility * GET_NEW_VARG (const char *first, ...) G_GNUC_UNUSED;
static GCPPageUtility *
GET_NEW_VARG (const char *first, ...)
{
      GCPPageUtility *ret;
      va_list ap;
      va_start (ap, first);
      ret = (GCPPageUtility *)g_object_new_valist (gcp_page_utility_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_utility_%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:Utility::finalize"
      GCPPageUtility *self G_GNUC_UNUSED = GCP_PAGE_UTILITY (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 45 "gcp-page-utility.gob"
      if(self->_priv->annotate_fill_color) { g_object_unref ((gpointer) self->_priv->annotate_fill_color); self->_priv->annotate_fill_color = NULL; }
#line 207 "gcp-page-utility.c"
#line 47 "gcp-page-utility.gob"
      if(self->_priv->annotate_line_width) { g_object_unref ((gpointer) self->_priv->annotate_line_width); self->_priv->annotate_line_width = NULL; }
#line 210 "gcp-page-utility.c"
#line 49 "gcp-page-utility.gob"
      if(self->_priv->annotate_stroke_color) { g_object_unref ((gpointer) self->_priv->annotate_stroke_color); self->_priv->annotate_stroke_color = NULL; }
#line 213 "gcp-page-utility.c"
#line 51 "gcp-page-utility.gob"
      if(self->_priv->annotate_stroke_width) { g_object_unref ((gpointer) self->_priv->annotate_stroke_width); self->_priv->annotate_stroke_width = NULL; }
#line 216 "gcp-page-utility.c"
#line 53 "gcp-page-utility.gob"
      if(self->_priv->annotate_clear_key) { g_object_unref ((gpointer) self->_priv->annotate_clear_key); self->_priv->annotate_clear_key = NULL; }
#line 219 "gcp-page-utility.c"
#line 55 "gcp-page-utility.gob"
      if(self->_priv->annotate_erase_button) { g_object_unref ((gpointer) self->_priv->annotate_erase_button); self->_priv->annotate_erase_button = NULL; }
#line 222 "gcp-page-utility.c"
#line 57 "gcp-page-utility.gob"
      if(self->_priv->annotate_initiate_button) { g_object_unref ((gpointer) self->_priv->annotate_initiate_button); self->_priv->annotate_initiate_button = NULL; }
#line 225 "gcp-page-utility.c"
#line 59 "gcp-page-utility.gob"
      if(self->_priv->screenshot_directory) { g_object_unref ((gpointer) self->_priv->screenshot_directory); self->_priv->screenshot_directory = NULL; }
#line 228 "gcp-page-utility.c"
#line 61 "gcp-page-utility.gob"
      if(self->_priv->screenshot_initiate_button) { g_object_unref ((gpointer) self->_priv->screenshot_initiate_button); self->_priv->screenshot_initiate_button = NULL; }
#line 231 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->clone_initiate_button) { g_object_unref ((gpointer) self->_priv->clone_initiate_button); self->_priv->clone_initiate_button = NULL; }
#line 234 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->annotate_checkbutton) { g_object_unref ((gpointer) self->_priv->annotate_checkbutton); self->_priv->annotate_checkbutton = NULL; }
#line 237 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->annotate_alignment) { g_object_unref ((gpointer) self->_priv->annotate_alignment); self->_priv->annotate_alignment = NULL; }
#line 240 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->annotate_fill_colorbutton) { g_object_unref ((gpointer) self->_priv->annotate_fill_colorbutton); self->_priv->annotate_fill_colorbutton = NULL; }
#line 243 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->annotate_line_width_spinbutton) { g_object_unref ((gpointer) self->_priv->annotate_line_width_spinbutton); self->_priv->annotate_line_width_spinbutton = NULL; }
#line 246 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->annotate_stroke_colorbutton) { g_object_unref ((gpointer) self->_priv->annotate_stroke_colorbutton); self->_priv->annotate_stroke_colorbutton = NULL; }
#line 249 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->annotate_stroke_width_spinbutton) { g_object_unref ((gpointer) self->_priv->annotate_stroke_width_spinbutton); self->_priv->annotate_stroke_width_spinbutton = NULL; }
#line 252 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->annotate_shortcuts_table) { g_object_unref ((gpointer) self->_priv->annotate_shortcuts_table); self->_priv->annotate_shortcuts_table = NULL; }
#line 255 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->screenshot_checkbutton) { g_object_unref ((gpointer) self->_priv->screenshot_checkbutton); self->_priv->screenshot_checkbutton = NULL; }
#line 258 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->screenshot_alignment) { g_object_unref ((gpointer) self->_priv->screenshot_alignment); self->_priv->screenshot_alignment = NULL; }
#line 261 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->screenshot_filechooserbutton) { g_object_unref ((gpointer) self->_priv->screenshot_filechooserbutton); self->_priv->screenshot_filechooserbutton = NULL; }
#line 264 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->screenshot_shortcuts_table) { g_object_unref ((gpointer) self->_priv->screenshot_shortcuts_table); self->_priv->screenshot_shortcuts_table = NULL; }
#line 267 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->clone_checkbutton) { g_object_unref ((gpointer) self->_priv->clone_checkbutton); self->_priv->clone_checkbutton = NULL; }
#line 270 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->clone_alignment) { g_object_unref ((gpointer) self->_priv->clone_alignment); self->_priv->clone_alignment = NULL; }
#line 273 "gcp-page-utility.c"
#line 63 "gcp-page-utility.gob"
      if(self->_priv->clone_shortcuts_table) { g_object_unref ((gpointer) self->_priv->clone_shortcuts_table); self->_priv->clone_shortcuts_table = NULL; }
#line 276 "gcp-page-utility.c"
}
#undef __GOB_FUNCTION__

static void 
gcp_page_utility_init (GCPPageUtility * o G_GNUC_UNUSED)
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::init"
      o->_priv = G_TYPE_INSTANCE_GET_PRIVATE(o,GCP_TYPE_PAGE_UTILITY,GCPPageUtilityPrivate);
      {
      GtkWidget * root;
      o->_priv->_glade_xml = glade_xml_new(GCP_PAGE_UTILITY_GLADE_FILE, "utility_page", NULL);
      root = glade_xml_get_widget(o->_priv->_glade_xml, "utility_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->annotate_checkbutton = (GtkCheckButton * )glade_xml_get_widget(o->_priv->_glade_xml, "annotate_checkbutton");
      o->_priv->annotate_alignment = (GtkAlignment * )glade_xml_get_widget(o->_priv->_glade_xml, "annotate_alignment");
      o->_priv->annotate_fill_colorbutton = (GtkColorButton * )glade_xml_get_widget(o->_priv->_glade_xml, "annotate_fill_colorbutton");
      o->_priv->annotate_line_width_spinbutton = (GtkSpinButton * )glade_xml_get_widget(o->_priv->_glade_xml, "annotate_line_width_spinbutton");
      o->_priv->annotate_stroke_colorbutton = (GtkColorButton * )glade_xml_get_widget(o->_priv->_glade_xml, "annotate_stroke_colorbutton");
      o->_priv->annotate_stroke_width_spinbutton = (GtkSpinButton * )glade_xml_get_widget(o->_priv->_glade_xml, "annotate_stroke_width_spinbutton");
      o->_priv->annotate_shortcuts_table = (GtkTable * )glade_xml_get_widget(o->_priv->_glade_xml, "annotate_shortcuts_table");
      o->_priv->screenshot_checkbutton = (GtkCheckButton * )glade_xml_get_widget(o->_priv->_glade_xml, "screenshot_checkbutton");
      o->_priv->screenshot_alignment = (GtkAlignment * )glade_xml_get_widget(o->_priv->_glade_xml, "screenshot_alignment");
      o->_priv->screenshot_filechooserbutton = (GtkColorButton * )glade_xml_get_widget(o->_priv->_glade_xml, "screenshot_filechooserbutton");
      o->_priv->screenshot_shortcuts_table = (GtkTable * )glade_xml_get_widget(o->_priv->_glade_xml, "screenshot_shortcuts_table");
      o->_priv->clone_checkbutton = (GtkCheckButton * )glade_xml_get_widget(o->_priv->_glade_xml, "clone_checkbutton");
      o->_priv->clone_alignment = (GtkAlignment * )glade_xml_get_widget(o->_priv->_glade_xml, "clone_alignment");
      o->_priv->clone_shortcuts_table = (GtkTable * )glade_xml_get_widget(o->_priv->_glade_xml, "clone_shortcuts_table");
}
#undef __GOB_FUNCTION__
static void 
gcp_page_utility_class_init (GCPPageUtilityClass * c G_GNUC_UNUSED)
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::class_init"
      GObjectClass *g_object_class G_GNUC_UNUSED = (GObjectClass*) c;
      GCMPageClass *gcm_page_class = (GCMPageClass *)c;

      g_type_class_add_private(c,sizeof(GCPPageUtilityPrivate));

      parent_class = g_type_class_ref (GCM_TYPE_PAGE);

#line 85 "gcp-page-utility.gob"
      gcm_page_class->construct = ___2_gcp_page_utility_construct;
#line 322 "gcp-page-utility.c"
      g_object_class->finalize = ___finalize;
}
#undef __GOB_FUNCTION__



#line 79 "gcp-page-utility.gob"
GType 
gcp_page_utility_get_type (void)
#line 332 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::get_type"
{
#line 81 "gcp-page-utility.gob"
      
            return gcp_page_utility_type;
      }}
#line 340 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 85 "gcp-page-utility.gob"
static gboolean 
___2_gcp_page_utility_construct (GCMPage * page G_GNUC_UNUSED)
#line 346 "gcp-page-utility.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:Utility::construct"
{
#line 87 "gcp-page-utility.gob"
      
            GCPPageUtility * 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");
            gcm_gl_desktop_enable_plugin(GCM_PAGE(self)->gl_desktop, "annotate");
            gcm_gl_desktop_enable_plugin(GCM_PAGE(self)->gl_desktop, "screenshot");
            gcm_gl_desktop_enable_plugin(GCM_PAGE(self)->gl_desktop, "clone");
                  
            self_get_options(self);
            self_init_annotate(self);
            self_init_screenshot(self);
            self_init_clone(self);
            
            return TRUE;
      }}
#line 373 "gcp-page-utility.c"
#undef __GOB_FUNCTION__
#undef PARENT_HANDLER

#line 106 "gcp-page-utility.gob"
static void 
gcp_page_utility_get_options (GCPPageUtility * self)
#line 380 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::get_options"
#line 106 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 106 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 387 "gcp-page-utility.c"
{
#line 108 "gcp-page-utility.gob"
      
            GCMGLPlugin * annotate = gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, 
                                                                                      "annotate");
            GCMGLPlugin * screenshot = gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, 
                                                                                       "screenshot");
            GCMGLPlugin * clone = gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, 
                                                                                  "clone");
            
            selfp->annotate_fill_color = gcm_gl_plugin_get_option(annotate, "fill_color",
                                                                                     GCM_GL_OPTION_SCREEN_ALL);
            selfp->annotate_stroke_color = gcm_gl_plugin_get_option(annotate, "stroke_color",
                                                                                     GCM_GL_OPTION_SCREEN_ALL);
            selfp->annotate_line_width = gcm_gl_plugin_get_option(annotate, "line_width",
                                                                                     GCM_GL_OPTION_SCREEN_ALL);
            selfp->annotate_stroke_width = gcm_gl_plugin_get_option(annotate, "stroke_width",
                                                                                     GCM_GL_OPTION_SCREEN_ALL);
            selfp->annotate_clear_key = gcm_gl_plugin_get_option(annotate, "clear_key",
                                                                                         GCM_GL_OPTION_SCREEN_ALL);
            selfp->annotate_erase_button = gcm_gl_plugin_get_option(annotate, "erase_button",
                                                                                         GCM_GL_OPTION_SCREEN_ALL);
            selfp->annotate_initiate_button = gcm_gl_plugin_get_option(annotate, "initiate_button",
                                                                                            GCM_GL_OPTION_SCREEN_ALL);
            selfp->screenshot_directory = gcm_gl_plugin_get_option(screenshot, "directory",
                                                                                           GCM_GL_OPTION_SCREEN_ALL);
            selfp->screenshot_initiate_button = gcm_gl_plugin_get_option(screenshot, "initiate_button",
                                                                                              GCM_GL_OPTION_SCREEN_ALL);
            selfp->clone_initiate_button = gcm_gl_plugin_get_option(clone, "initiate_button",
                                                                                         GCM_GL_OPTION_SCREEN_ALL);
      }}
#line 419 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 138 "gcp-page-utility.gob"
static void 
gcp_page_utility_init_annotate (GCPPageUtility * self)
#line 425 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::init_annotate"
#line 138 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 138 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 432 "gcp-page-utility.c"
{
#line 140 "gcp-page-utility.gob"
      
            GCMGLPlugin * annotate = gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, 
                                                                                     "annotate");
            gboolean annotate_enabled =  gcm_gl_desktop_plugin_is_active(GCM_PAGE(self)->gl_desktop,
                                                                                                     "annotate");
            GtkWidget * annotate_clear_entryshortcut;
            GtkWidget * annotate_erase_entryshortcut;
            GtkWidget * annotate_initiate_entryshortcut;
            gchar * clear_key = gcm_gl_option_get_string(selfp->annotate_clear_key);
            gchar * erase_button = gcm_gl_option_get_string(selfp->annotate_erase_button);
            gchar * initiate_button = gcm_gl_option_get_string(selfp->annotate_initiate_button);
            GCMGLColor * fill_color = gcm_gl_option_get_color(selfp->annotate_fill_color);
            GdkColor * gfill_color = gcm_gl_color_to_gdk_color(fill_color);
            GCMGLColor * stroke_color = gcm_gl_option_get_color(selfp->annotate_stroke_color);
            GdkColor * gstroke_color = gcm_gl_color_to_gdk_color(stroke_color);
            gdouble line_width = gcm_gl_option_get_float(selfp->annotate_line_width);
            gdouble stroke_width = gcm_gl_option_get_float(selfp->annotate_stroke_width);
            GtkTooltips * tooltips;
            
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->annotate_checkbutton),
                                                       annotate_enabled);
            gtk_widget_set_sensitive(GTK_WIDGET(selfp->annotate_alignment),
                                                 annotate_enabled);
            
            gtk_color_button_set_color(selfp->annotate_fill_colorbutton, gfill_color);
            g_free(gfill_color);
            gtk_color_button_set_alpha(selfp->annotate_fill_colorbutton, fill_color->alpha);
            g_object_unref(fill_color);
            gtk_spin_button_set_value(selfp->annotate_line_width_spinbutton, line_width);
            
            gtk_color_button_set_color(selfp->annotate_stroke_colorbutton, gstroke_color);
            g_free(gstroke_color);
            gtk_color_button_set_alpha(selfp->annotate_stroke_colorbutton, stroke_color->alpha);
            g_object_unref(stroke_color);
            gtk_spin_button_set_value(selfp->annotate_stroke_width_spinbutton, stroke_width);
            
            annotate_clear_entryshortcut = gcm_entry_shortcut_new(clear_key, FALSE);
            g_free(clear_key);
            gtk_widget_show(annotate_clear_entryshortcut);
            gtk_table_attach_defaults(selfp->annotate_shortcuts_table, 
                                                  annotate_clear_entryshortcut, 1, 2, 1, 2);
            g_signal_connect_swapped(annotate_clear_entryshortcut,
                                                 "edited",
                                                 G_CALLBACK(self_on_annotate_clear_entryshortcut_changed),
                                                 self);
            
            annotate_erase_entryshortcut = gcm_entry_shortcut_new(erase_button, TRUE);
            g_free(erase_button);
            gtk_widget_show(annotate_erase_entryshortcut);
            gtk_table_attach_defaults(selfp->annotate_shortcuts_table, 
                                                  annotate_erase_entryshortcut, 3, 4, 0, 1);
            g_signal_connect_swapped(annotate_erase_entryshortcut,
                                                 "edited",
                                                 G_CALLBACK(self_on_annotate_erase_entryshortcut_changed),
                                                 self);
            
            annotate_initiate_entryshortcut = gcm_entry_shortcut_new(initiate_button, TRUE);
            g_free(initiate_button);
            gtk_widget_show(annotate_initiate_entryshortcut);
            gtk_table_attach_defaults(selfp->annotate_shortcuts_table, 
                                                  annotate_initiate_entryshortcut, 1, 2, 0, 1);
            g_signal_connect_swapped(annotate_initiate_entryshortcut,
                                                 "edited",
                                                 G_CALLBACK(self_on_annotate_initiate_entryshortcut_changed),
                                                 self);
            
            tooltips = gtk_tooltips_new();
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->annotate_checkbutton),
                                           annotate->info,
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->annotate_fill_colorbutton),
                                           gcm_gl_option_get_description(selfp->annotate_fill_color),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->annotate_line_width_spinbutton),
                                           gcm_gl_option_get_description(selfp->annotate_line_width),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->annotate_stroke_colorbutton),
                                           gcm_gl_option_get_description(selfp->annotate_stroke_color),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->annotate_stroke_width_spinbutton),
                                           gcm_gl_option_get_description(selfp->annotate_stroke_width),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(annotate_clear_entryshortcut),
                                           gcm_gl_option_get_description(selfp->annotate_clear_key),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(annotate_erase_entryshortcut),
                                           gcm_gl_option_get_description(selfp->annotate_erase_button),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(annotate_initiate_entryshortcut),
                                           gcm_gl_option_get_description(selfp->annotate_initiate_button),
                                           NULL);
      }}
#line 527 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 233 "gcp-page-utility.gob"
void 
gcp_page_utility_on_annotate_checkbutton_toggled (GCPPageUtility * self)
#line 533 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_annotate_checkbutton_toggled"
#line 233 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 233 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 540 "gcp-page-utility.c"
{
#line 235 "gcp-page-utility.gob"
      
            gboolean annotate = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(selfp->annotate_checkbutton));
            
            if (annotate)
                  gcm_gl_desktop_enable_plugin(GCM_PAGE(self)->gl_desktop,
                                                             "annotate");
            else
                  gcm_gl_desktop_disable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "annotate");
            
            gtk_widget_set_sensitive(GTK_WIDGET(selfp->annotate_alignment), annotate);
      }}
#line 555 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 248 "gcp-page-utility.gob"
void 
gcp_page_utility_on_annotate_fill_colorbutton_color_set (GCPPageUtility * self)
#line 561 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_annotate_fill_colorbutton_color_set"
#line 248 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 248 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 568 "gcp-page-utility.c"
{
#line 250 "gcp-page-utility.gob"
      
            GdkColor gcolor;
            GCMGLColor * color;
            guint16 alpha;
            
            gtk_color_button_get_color(selfp->annotate_fill_colorbutton, &gcolor);
            alpha = gtk_color_button_get_alpha(selfp->annotate_fill_colorbutton);
            color = gcm_gl_color_new_with_gdk_color(&gcolor, alpha);
            
            gcm_gl_option_set_color(selfp->annotate_fill_color, color);
            g_object_unref(color);
      }}
#line 583 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 263 "gcp-page-utility.gob"
void 
gcp_page_utility_on_annotate_line_width_spinbutton_value_changed (GCPPageUtility * self, GtkScrollType * scroll, GtkSpinButton * button)
#line 589 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_annotate_line_width_spinbutton_value_changed"
#line 263 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 263 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 596 "gcp-page-utility.c"
{
#line 266 "gcp-page-utility.gob"
      
            gdouble nb = gtk_spin_button_get_value(selfp->annotate_line_width_spinbutton);
            gcm_gl_option_set_float(selfp->annotate_line_width, nb);
      }}
#line 603 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 271 "gcp-page-utility.gob"
void 
gcp_page_utility_on_annotate_stroke_colorbutton_color_set (GCPPageUtility * self)
#line 609 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_annotate_stroke_colorbutton_color_set"
#line 271 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 271 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 616 "gcp-page-utility.c"
{
#line 273 "gcp-page-utility.gob"
      
            GdkColor gcolor;
            GCMGLColor * color;
            guint16 alpha;
            
            gtk_color_button_get_color(selfp->annotate_stroke_colorbutton, &gcolor);
            alpha = gtk_color_button_get_alpha(selfp->annotate_stroke_colorbutton);
            color = gcm_gl_color_new_with_gdk_color(&gcolor, alpha);
            
            gcm_gl_option_set_color(selfp->annotate_stroke_color, color);
            g_object_unref(color);
      }}
#line 631 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 286 "gcp-page-utility.gob"
void 
gcp_page_utility_on_annotate_stroke_width_spinbutton_value_changed (GCPPageUtility * self, GtkScrollType * scroll, GtkSpinButton * button)
#line 637 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_annotate_stroke_width_spinbutton_value_changed"
#line 286 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 286 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 644 "gcp-page-utility.c"
{
#line 289 "gcp-page-utility.gob"
      
            gdouble nb = gtk_spin_button_get_value(selfp->annotate_stroke_width_spinbutton);
            gcm_gl_option_set_float(selfp->annotate_stroke_width, nb);
      }}
#line 651 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 294 "gcp-page-utility.gob"
static void 
gcp_page_utility_on_annotate_clear_entryshortcut_changed (GCPPageUtility * self, GCMEntryShortcut * entry)
#line 657 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_annotate_clear_entryshortcut_changed"
#line 294 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 294 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 664 "gcp-page-utility.c"
{
#line 296 "gcp-page-utility.gob"
      
            const gchar * value = gtk_entry_get_text(GTK_ENTRY(entry));
            
            gcm_gl_option_set_string(selfp->annotate_clear_key, (gchar *)value);
      }}
#line 672 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 302 "gcp-page-utility.gob"
static void 
gcp_page_utility_on_annotate_erase_entryshortcut_changed (GCPPageUtility * self, GCMEntryShortcut * entry)
#line 678 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_annotate_erase_entryshortcut_changed"
#line 302 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 302 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 685 "gcp-page-utility.c"
{
#line 304 "gcp-page-utility.gob"
      
            const gchar * value = gtk_entry_get_text(GTK_ENTRY(entry));
            
            gcm_gl_option_set_string(selfp->annotate_erase_button, (gchar *)value);
      }}
#line 693 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 310 "gcp-page-utility.gob"
static void 
gcp_page_utility_on_annotate_initiate_entryshortcut_changed (GCPPageUtility * self, GCMEntryShortcut * entry)
#line 699 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_annotate_initiate_entryshortcut_changed"
#line 310 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 310 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 706 "gcp-page-utility.c"
{
#line 312 "gcp-page-utility.gob"
      
            const gchar * value = gtk_entry_get_text(GTK_ENTRY(entry));
            
            gcm_gl_option_set_string(selfp->annotate_initiate_button, (gchar *)value);
      }}
#line 714 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 318 "gcp-page-utility.gob"
static void 
gcp_page_utility_init_screenshot (GCPPageUtility * self)
#line 720 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::init_screenshot"
#line 318 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 318 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 727 "gcp-page-utility.c"
{
#line 320 "gcp-page-utility.gob"
      
            GCMGLPlugin * screenshot = gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, 
                                                                                       "screenshot");
            gboolean screenshot_enabled =  gcm_gl_desktop_plugin_is_active(GCM_PAGE(self)->gl_desktop,
                                                                                                       "screenshot");
            GtkWidget * screenshot_initiate_entryshortcut;
            gchar * screenshot_button = gcm_gl_option_get_string(selfp->screenshot_initiate_button);
            gchar * directory = gcm_gl_option_get_string(selfp->screenshot_directory);
            GtkTooltips * tooltips;
            
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->screenshot_checkbutton),
                                                       screenshot_enabled);
            gtk_widget_set_sensitive(GTK_WIDGET(selfp->screenshot_alignment),
                                                 screenshot_enabled);
            
            gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(selfp->screenshot_filechooserbutton),
                                                        directory);
            
            screenshot_initiate_entryshortcut = gcm_entry_shortcut_new(screenshot_button, TRUE);
            g_free(screenshot_button);
            gtk_widget_show(screenshot_initiate_entryshortcut);
            gtk_table_attach_defaults(selfp->screenshot_shortcuts_table, 
                                                  screenshot_initiate_entryshortcut, 1, 2, 0, 1);
            g_signal_connect_swapped(screenshot_initiate_entryshortcut,
                                                 "edited",
                                                 G_CALLBACK(self_on_screenshot_initiate_entryshortcut_changed),
                                                 self);
            
            tooltips = gtk_tooltips_new();
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->screenshot_checkbutton),
                                           screenshot->info,
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->screenshot_filechooserbutton),
                                           gcm_gl_option_get_description(selfp->screenshot_directory),
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(screenshot_initiate_entryshortcut),
                                           gcm_gl_option_get_description(selfp->screenshot_initiate_button),
                                           NULL);
      }}
#line 769 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 360 "gcp-page-utility.gob"
void 
gcp_page_utility_on_screenshot_checkbutton_toggled (GCPPageUtility * self)
#line 775 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_screenshot_checkbutton_toggled"
#line 360 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 360 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 782 "gcp-page-utility.c"
{
#line 362 "gcp-page-utility.gob"
      
            gboolean screenshot = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(selfp->screenshot_checkbutton));
            
            if (screenshot)
                  gcm_gl_desktop_enable_plugin(GCM_PAGE(self)->gl_desktop,
                                                             "screenshot");
            else
                  gcm_gl_desktop_disable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "screenshot");
            
            gtk_widget_set_sensitive(GTK_WIDGET(selfp->screenshot_alignment), screenshot);
      }}
#line 797 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 375 "gcp-page-utility.gob"
void 
gcp_page_utility_on_screenshot_filechooserbutton_selection_changed (GCPPageUtility * self, GtkWidget * button)
#line 803 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_screenshot_filechooserbutton_selection_changed"
#line 375 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 375 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 810 "gcp-page-utility.c"
{
#line 377 "gcp-page-utility.gob"
      
            gchar * directory = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(selfp->screenshot_filechooserbutton));
            
            gcm_gl_option_set_string(selfp->screenshot_directory, directory);
            g_free(directory);
      }}
#line 819 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 384 "gcp-page-utility.gob"
static void 
gcp_page_utility_on_screenshot_initiate_entryshortcut_changed (GCPPageUtility * self, GCMEntryShortcut * entry)
#line 825 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_screenshot_initiate_entryshortcut_changed"
#line 384 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 384 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 832 "gcp-page-utility.c"
{
#line 386 "gcp-page-utility.gob"
      
            const gchar * value = gtk_entry_get_text(GTK_ENTRY(entry));
            
            gcm_gl_option_set_string(selfp->screenshot_initiate_button, (gchar *)value);
      }}
#line 840 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 392 "gcp-page-utility.gob"
static void 
gcp_page_utility_init_clone (GCPPageUtility * self)
#line 846 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::init_clone"
#line 392 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 392 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 853 "gcp-page-utility.c"
{
#line 394 "gcp-page-utility.gob"
      
            GCMGLPlugin * clone = gcm_gl_desktop_get_plugin(GCM_PAGE(self)->gl_desktop, 
                                                                                    "clone");
            gboolean clone_enabled =  gcm_gl_desktop_plugin_is_active(GCM_PAGE(self)->gl_desktop,
                                                                                                  "clone");
            GtkWidget * clone_initiate_entryshortcut;
            gchar * clone_button = gcm_gl_option_get_string(selfp->clone_initiate_button);
            GtkTooltips * tooltips;
            
            gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(selfp->clone_checkbutton),
                                                       clone_enabled);
            gtk_widget_set_sensitive(GTK_WIDGET(selfp->clone_alignment),
                                                 clone_enabled);
            
            clone_initiate_entryshortcut = gcm_entry_shortcut_new(clone_button, TRUE);
            g_free(clone_button);
            gtk_widget_show(clone_initiate_entryshortcut);
            gtk_table_attach_defaults(selfp->clone_shortcuts_table, 
                                                  clone_initiate_entryshortcut, 1, 2, 0, 1);
            g_signal_connect_swapped(clone_initiate_entryshortcut,
                                                 "edited",
                                                 G_CALLBACK(self_on_clone_initiate_entryshortcut_changed),
                                                 self);
            
            tooltips = gtk_tooltips_new();
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(selfp->clone_checkbutton),
                                           clone->info,
                                           NULL);
            gtk_tooltips_set_tip(tooltips, GTK_WIDGET(clone_initiate_entryshortcut),
                                           gcm_gl_option_get_description(selfp->clone_initiate_button),
                                           NULL);
      }}
#line 888 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 427 "gcp-page-utility.gob"
void 
gcp_page_utility_on_clone_checkbutton_toggled (GCPPageUtility * self)
#line 894 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_clone_checkbutton_toggled"
#line 427 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 427 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 901 "gcp-page-utility.c"
{
#line 429 "gcp-page-utility.gob"
      
            gboolean clone = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(selfp->clone_checkbutton));
            
            if (clone)
                  gcm_gl_desktop_enable_plugin(GCM_PAGE(self)->gl_desktop,
                                                             "clone");
            else
                  gcm_gl_desktop_disable_plugin(GCM_PAGE(self)->gl_desktop,
                                                              "clone");
            
            gtk_widget_set_sensitive(GTK_WIDGET(selfp->clone_alignment), clone);
      }}
#line 916 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 442 "gcp-page-utility.gob"
static void 
gcp_page_utility_on_clone_initiate_entryshortcut_changed (GCPPageUtility * self, GCMEntryShortcut * entry)
#line 922 "gcp-page-utility.c"
{
#define __GOB_FUNCTION__ "GCP:Page:Utility::on_clone_initiate_entryshortcut_changed"
#line 442 "gcp-page-utility.gob"
      g_return_if_fail (self != NULL);
#line 442 "gcp-page-utility.gob"
      g_return_if_fail (GCP_IS_PAGE_UTILITY (self));
#line 929 "gcp-page-utility.c"
{
#line 444 "gcp-page-utility.gob"
      
            const gchar * value = gtk_entry_get_text(GTK_ENTRY(entry));
            
            gcm_gl_option_set_string(selfp->clone_initiate_button, (gchar *)value);
      }}
#line 937 "gcp-page-utility.c"
#undef __GOB_FUNCTION__

#line 451 "gcp-page-utility.gob"

GCM_PLUGIN_FACTORY(GCPPageUtility, GCM_TYPE_PAGE, gcp_page_utility);

#line 944 "gcp-page-utility.c"

Generated by  Doxygen 1.6.0   Back to index