]> git.sur5r.net Git - glabels/commitdiff
2004-07-02 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Fri, 2 Jul 2004 18:48:42 +0000 (18:48 +0000)
committerJim Evins <evins@snaught.com>
Fri, 2 Jul 2004 18:48:42 +0000 (18:48 +0000)
* src/glabels.c: (main), (save_session_cb):
- Now include libbonoboui.h, recent.h, and file.h to provide missing
  prototypes.
- save_session_cb() now returns gboolean.
- Minor formatting changes.

* src/window.h:
* src/window.c:
- Now include file.h to provide missing prototype.
- gl_window_get_type() now returns GType, not guint.  I believe this may
  ultimately be cause of the segfault reported in Bug #982287, since
  GType is actually a gulong, which may not be compatible on other
  architectures (64bit) -- I cannot personally test this at this time.
  I was sloppy in several other xxx_get_type() functions which also
  returned guint -- see next group of files:

* src/window.c: (gl_window_get_type):
* src/canvas-hacktext.c: (gl_canvas_hacktext_get_type):
* src/canvas-hacktext.h:
* src/hig.c: (gl_hig_alert_get_type), (gl_hig_dialog_get_type),
(gl_hig_category_get_type), (gl_hig_vbox_get_type),
(gl_hig_hbox_get_type):
* src/hig.h:
* src/label-barcode.c: (gl_label_barcode_get_type):
* src/label-barcode.h:
* src/label-box.c: (gl_label_box_get_type):
* src/label-box.h:
* src/label-ellipse.c: (gl_label_ellipse_get_type):
* src/label-ellipse.h:
* src/label-image.c: (gl_label_image_get_type):
* src/label-image.h:
* src/label-line.c: (gl_label_line_get_type):
* src/label-line.h:
* src/label-object.c: (gl_label_object_get_type):
* src/label-object.h:
* src/label-text.c: (gl_label_text_get_type):
* src/label-text.h:
* src/label.c: (gl_label_get_type):
* src/label.h:
* src/merge-properties-dialog.c:
(gl_merge_properties_dialog_get_type):
* src/merge-properties-dialog.h:
* src/merge-text.c: (gl_merge_text_get_type):
* src/merge-text.h:
* src/merge.c: (gl_merge_get_type):
* src/merge.h:
* src/object-editor.c: (gl_object_editor_get_type):
* src/prefs-dialog.c: (gl_prefs_dialog_get_type):
* src/prefs-dialog.h:
* src/prefs-model.c: (gl_prefs_model_get_type):
* src/prefs-model.h:
* src/print-dialog.c: (gl_print_dialog_get_type):
* src/print-dialog.h:
* src/template-designer.c: (gl_template_designer_get_type):
* src/template-designer.h:
* src/ui-property-bar.c: (gl_ui_property_bar_get_type):
* src/ui-property-bar.h:
* src/ui-sidebar.c: (gl_ui_sidebar_get_type):
* src/ui-sidebar.h:
* src/view-barcode.c: (gl_view_barcode_get_type):
* src/view-barcode.h:
* src/view-box.c: (gl_view_box_get_type):
* src/view-box.h:
* src/view-ellipse.c: (gl_view_ellipse_get_type):
* src/view-ellipse.h:
* src/view-highlight.c: (gl_view_highlight_get_type):
* src/view-highlight.h:
* src/view-image.c: (gl_view_image_get_type):
* src/view-image.h:
* src/view-line.c: (gl_view_line_get_type):
* src/view-line.h:
* src/view-object.c: (gl_view_object_get_type):
* src/view-object.h:
* src/view-text.c: (gl_view_text_get_type):
* src/view-text.h:
* src/view.c: (gl_view_get_type):
* src/view.h:
* src/wdgt-chain-button.c: (gl_wdgt_chain_button_get_type):
* src/wdgt-image-select.c: (gl_wdgt_image_select_get_type):
* src/wdgt-image-select.h:
* src/wdgt-media-select.c: (gl_wdgt_media_select_get_type):
* src/wdgt-media-select.h:
* src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_get_type):
* src/wdgt-mini-preview.h:
* src/wdgt-print-copies.c: (gl_wdgt_print_copies_get_type):
* src/wdgt-print-copies.h:
* src/wdgt-print-merge.c: (gl_wdgt_print_merge_get_type):
* src/wdgt-print-merge.h:
* src/wdgt-rotate-label.c: (gl_wdgt_rotate_label_get_type):
* src/wdgt-rotate-label.h:
- Made sure all xxx_get_type functions returned GType, not guint.  This
  was the case in hig.[ch], window.[ch], ui-property-bar.[ch],
  ui-sidebar.[ch], view.[ch], wdgt-image-select.[ch],
  wdgt-media-select.[ch], wdgt-mini-preview.[ch], wdgt-print-copies.[ch],
  wdt-print-merge.[ch], and wdgt-rotate-label.[ch].  See separate
  window.[ch] details above for more info.
- Reconciled various coding style differences in all xxx_get_type()
  functions:
* All prototypes include G_GNUC_CONST.
* All prototypes specify the return value as GType, not GtkType
  or guint.
* Info structures are all declared as "static const."
* Generalized the names of type and info variables.
* Miscelaneous formatting.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@427 f5e0f49d-192f-0410-a22d-a8d8700d0965

74 files changed:
glabels2/ChangeLog
glabels2/src/canvas-hacktext.c
glabels2/src/canvas-hacktext.h
glabels2/src/glabels.c
glabels2/src/hig.c
glabels2/src/hig.h
glabels2/src/label-barcode.c
glabels2/src/label-barcode.h
glabels2/src/label-box.c
glabels2/src/label-box.h
glabels2/src/label-ellipse.c
glabels2/src/label-ellipse.h
glabels2/src/label-image.c
glabels2/src/label-image.h
glabels2/src/label-line.c
glabels2/src/label-line.h
glabels2/src/label-object.c
glabels2/src/label-object.h
glabels2/src/label-text.c
glabels2/src/label-text.h
glabels2/src/label.c
glabels2/src/label.h
glabels2/src/merge-properties-dialog.c
glabels2/src/merge-properties-dialog.h
glabels2/src/merge-text.c
glabels2/src/merge-text.h
glabels2/src/merge.c
glabels2/src/merge.h
glabels2/src/object-editor.c
glabels2/src/prefs-dialog.c
glabels2/src/prefs-dialog.h
glabels2/src/prefs-model.c
glabels2/src/prefs-model.h
glabels2/src/print-dialog.c
glabels2/src/print-dialog.h
glabels2/src/template-designer.c
glabels2/src/template-designer.h
glabels2/src/ui-property-bar.c
glabels2/src/ui-property-bar.h
glabels2/src/ui-sidebar.c
glabels2/src/ui-sidebar.h
glabels2/src/view-barcode.c
glabels2/src/view-barcode.h
glabels2/src/view-box.c
glabels2/src/view-box.h
glabels2/src/view-ellipse.c
glabels2/src/view-ellipse.h
glabels2/src/view-highlight.c
glabels2/src/view-highlight.h
glabels2/src/view-image.c
glabels2/src/view-image.h
glabels2/src/view-line.c
glabels2/src/view-line.h
glabels2/src/view-object.c
glabels2/src/view-object.h
glabels2/src/view-text.c
glabels2/src/view-text.h
glabels2/src/view.c
glabels2/src/view.h
glabels2/src/wdgt-chain-button.c
glabels2/src/wdgt-image-select.c
glabels2/src/wdgt-image-select.h
glabels2/src/wdgt-media-select.c
glabels2/src/wdgt-media-select.h
glabels2/src/wdgt-mini-preview.c
glabels2/src/wdgt-mini-preview.h
glabels2/src/wdgt-print-copies.c
glabels2/src/wdgt-print-copies.h
glabels2/src/wdgt-print-merge.c
glabels2/src/wdgt-print-merge.h
glabels2/src/wdgt-rotate-label.c
glabels2/src/wdgt-rotate-label.h
glabels2/src/window.c
glabels2/src/window.h

index b4d94ac2d59635655a3231f7f1925a881de673f5..96b7d392ced17b0598854bc884265d94cd0ffa51 100644 (file)
@@ -1,3 +1,110 @@
+2004-07-02  Jim Evins  <evins@snaught.com>
+
+       * src/glabels.c: (main), (save_session_cb):
+               - Now include libbonoboui.h, recent.h, and file.h to provide missing
+                 prototypes.
+               - save_session_cb() now returns gboolean.
+               - Minor formatting changes.
+
+       * src/window.h:
+       * src/window.c:
+               - Now include file.h to provide missing prototype.
+               - gl_window_get_type() now returns GType, not guint.  I believe this may
+                 ultimately be cause of the segfault reported in Bug #982287, since
+                 GType is actually a gulong, which may not be compatible on other
+                 architectures (64bit) -- I cannot personally test this at this time.
+                 I was sloppy in several other xxx_get_type() functions which also
+                 returned guint -- see next group of files:
+       
+       * src/window.c: (gl_window_get_type):
+       * src/canvas-hacktext.c: (gl_canvas_hacktext_get_type):
+       * src/canvas-hacktext.h:
+       * src/hig.c: (gl_hig_alert_get_type), (gl_hig_dialog_get_type),
+       (gl_hig_category_get_type), (gl_hig_vbox_get_type),
+       (gl_hig_hbox_get_type):
+       * src/hig.h:
+       * src/label-barcode.c: (gl_label_barcode_get_type):
+       * src/label-barcode.h:
+       * src/label-box.c: (gl_label_box_get_type):
+       * src/label-box.h:
+       * src/label-ellipse.c: (gl_label_ellipse_get_type):
+       * src/label-ellipse.h:
+       * src/label-image.c: (gl_label_image_get_type):
+       * src/label-image.h:
+       * src/label-line.c: (gl_label_line_get_type):
+       * src/label-line.h:
+       * src/label-object.c: (gl_label_object_get_type):
+       * src/label-object.h:
+       * src/label-text.c: (gl_label_text_get_type):
+       * src/label-text.h:
+       * src/label.c: (gl_label_get_type):
+       * src/label.h:
+       * src/merge-properties-dialog.c:
+       (gl_merge_properties_dialog_get_type):
+       * src/merge-properties-dialog.h:
+       * src/merge-text.c: (gl_merge_text_get_type):
+       * src/merge-text.h:
+       * src/merge.c: (gl_merge_get_type):
+       * src/merge.h:
+       * src/object-editor.c: (gl_object_editor_get_type):
+       * src/prefs-dialog.c: (gl_prefs_dialog_get_type):
+       * src/prefs-dialog.h:
+       * src/prefs-model.c: (gl_prefs_model_get_type):
+       * src/prefs-model.h:
+       * src/print-dialog.c: (gl_print_dialog_get_type):
+       * src/print-dialog.h:
+       * src/template-designer.c: (gl_template_designer_get_type):
+       * src/template-designer.h:
+       * src/ui-property-bar.c: (gl_ui_property_bar_get_type):
+       * src/ui-property-bar.h:
+       * src/ui-sidebar.c: (gl_ui_sidebar_get_type):
+       * src/ui-sidebar.h:
+       * src/view-barcode.c: (gl_view_barcode_get_type):
+       * src/view-barcode.h:
+       * src/view-box.c: (gl_view_box_get_type):
+       * src/view-box.h:
+       * src/view-ellipse.c: (gl_view_ellipse_get_type):
+       * src/view-ellipse.h:
+       * src/view-highlight.c: (gl_view_highlight_get_type):
+       * src/view-highlight.h:
+       * src/view-image.c: (gl_view_image_get_type):
+       * src/view-image.h:
+       * src/view-line.c: (gl_view_line_get_type):
+       * src/view-line.h:
+       * src/view-object.c: (gl_view_object_get_type):
+       * src/view-object.h:
+       * src/view-text.c: (gl_view_text_get_type):
+       * src/view-text.h:
+       * src/view.c: (gl_view_get_type):
+       * src/view.h:
+       * src/wdgt-chain-button.c: (gl_wdgt_chain_button_get_type):
+       * src/wdgt-image-select.c: (gl_wdgt_image_select_get_type):
+       * src/wdgt-image-select.h:
+       * src/wdgt-media-select.c: (gl_wdgt_media_select_get_type):
+       * src/wdgt-media-select.h:
+       * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_get_type):
+       * src/wdgt-mini-preview.h:
+       * src/wdgt-print-copies.c: (gl_wdgt_print_copies_get_type):
+       * src/wdgt-print-copies.h:
+       * src/wdgt-print-merge.c: (gl_wdgt_print_merge_get_type):
+       * src/wdgt-print-merge.h:
+       * src/wdgt-rotate-label.c: (gl_wdgt_rotate_label_get_type):
+       * src/wdgt-rotate-label.h:
+               - Made sure all xxx_get_type functions returned GType, not guint.  This
+                 was the case in hig.[ch], window.[ch], ui-property-bar.[ch],
+                 ui-sidebar.[ch], view.[ch], wdgt-image-select.[ch],
+                 wdgt-media-select.[ch], wdgt-mini-preview.[ch], wdgt-print-copies.[ch],
+                 wdt-print-merge.[ch], and wdgt-rotate-label.[ch].  See separate
+                 window.[ch] details above for more info.
+               - Reconciled various coding style differences in all xxx_get_type()
+                 functions:
+                       * All prototypes include G_GNUC_CONST.
+                       * All prototypes specify the return value as GType, not GtkType
+                         or guint.
+                       * Info structures are all declared as "static const."
+                       * Generalized the names of type and info variables.
+                       * Miscelaneous formatting.
+
 2004-06-08  Jim Evins  <evins@snaught.com>
 
        * src/label.c:
index 0c3ba8d80d86f64d3fe2f354cb8de12fd5a140a4..bf45da08229b914f9d095f3168c89f98ce32f464 100644 (file)
@@ -85,10 +85,10 @@ struct _glCanvasHacktextPriv {
 GType
 gl_canvas_hacktext_get_type (void)
 {
-       static GType hacktext_type = 0;
+       static GType type = 0;
 
-       if (!hacktext_type) {
-               static const GTypeInfo hacktext_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glCanvasHacktextClass),
                        NULL,
                        NULL,
@@ -101,12 +101,12 @@ gl_canvas_hacktext_get_type (void)
                        NULL
                };
 
-               hacktext_type = g_type_register_static (GNOME_TYPE_CANVAS_ITEM,
-                                                       "glCanvasHacktext",
-                                                       &hacktext_info, 0);
+               type = g_type_register_static (GNOME_TYPE_CANVAS_ITEM,
+                                              "glCanvasHacktext",
+                                              &info, 0);
        }
 
-       return hacktext_type;
+       return type;
 }
 
 static void
index 09f1c698835d69f5b6e1db1f9a14fbe1fa267496..7fe30134155be654125264b5a735b074f3416758 100644 (file)
@@ -65,7 +65,7 @@ struct _glCanvasHacktextClass {
 };
 
 
-GType gl_canvas_hacktext_get_type (void);
+GType gl_canvas_hacktext_get_type (void) G_GNUC_CONST;
 
 
 G_END_DECLS
index d3603e1cdac720331e0ed2234c19af4e0d9237e3..d2f6f23e0a196e7ac57953e8f3f40ba854bf3fda 100644 (file)
 #include <libgnome/libgnome.h>
 #include <libgnomeui/libgnomeui.h>
 #include <libgnomeui/gnome-window-icon.h>
+#include <libbonoboui.h>
 
 #include "splash.h"
 #include "stock.h"
 #include "merge-init.h"
+#include "recent.h"
 #include <libglabels/paper.h>
 #include <libglabels/template.h>
 #include "prefs.h"
 #include "debug.h"
 #include "window.h"
+#include "file.h"
 
 /*========================================================*/
 /* Private macros and constants.                          */
@@ -120,16 +123,16 @@ static const struct poptOption options [] =
 /*========================================================*/
 /* Local function prototypes                              */
 /*========================================================*/
-gint save_session_cb (GnomeClient        *client,
-                     gint                phase,
-                     GnomeRestartStyle   save_style,
-                     gint                shutdown,
-                     GnomeInteractStyle  interact_style,
-                     gint                fast,
-                     gpointer            client_data);
+gboolean save_session_cb (GnomeClient        *client,
+                         gint                phase,
+                         GnomeRestartStyle   save_style,
+                         gint                shutdown,
+                         GnomeInteractStyle  interact_style,
+                         gint                fast,
+                         gpointer            client_data);
 
-void client_die_cb   (GnomeClient        *client,
-                     gpointer            client_data);
+void client_die_cb       (GnomeClient        *client,
+                         gpointer            client_data);
 
 /****************************************************************************/
 /* main program                                                             */
@@ -174,13 +177,13 @@ main (int argc, char **argv)
        }
        
        /* Initialize subsystems */
-       gl_paper_init();
+       gl_paper_init ();
        gl_prefs_init ();
-       gl_template_init();
-       gl_merge_init();
-       gl_recent_init();
+       gl_template_init ();
+       gl_merge_init ();
+       gl_recent_init ();
        
-       if (bonobo_ui_init ("glabels", VERSION, &argc, argv) == FALSE) {
+       if (!bonobo_ui_init ("glabels", VERSION, &argc, argv)) {
                g_error (_("Could not initialize Bonobo!\n"));
        }
 
@@ -229,13 +232,13 @@ main (int argc, char **argv)
 /*---------------------------------------------------------------------------*/
 /* PRIVATE.  "Save session" callback.                                        */
 /*---------------------------------------------------------------------------*/
-gint save_session_cb (GnomeClient        *client,
-                     gint                phase,
-                     GnomeRestartStyle   save_style,
-                     gint                shutdown,
-                     GnomeInteractStyle  interact_style,
-                     gint                fast,
-                     gpointer            client_data)
+gboolean save_session_cb (GnomeClient        *client,
+                         gint                phase,
+                         GnomeRestartStyle   save_style,
+                         gint                shutdown,
+                         GnomeInteractStyle  interact_style,
+                         gint                fast,
+                         gpointer            client_data)
 {
        gchar       *argv[128];
        gint         argc;
index bd2d20777009a6a1dfe06bc49fe8df83589dc88f..f5f026e23d5315a92712a04833442011cca33188 100644 (file)
@@ -87,13 +87,13 @@ static void       gl_hig_hbox_finalize       (GObject *object);
 /* Boilerplate Alert Object stuff.                                          */
 /****************************************************************************/
 /****************************************************************************/
-guint
+GType
 gl_hig_alert_get_type (void)
 {
-       static guint hig_alert_type = 0;
+       static GType type = 0;
 
-       if (!hig_alert_type) {
-               GTypeInfo hig_alert_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glHigAlertClass),
                        NULL,
                        NULL,
@@ -103,15 +103,14 @@ gl_hig_alert_get_type (void)
                        sizeof (glHigAlert),
                        0,
                        (GInstanceInitFunc) gl_hig_alert_init,
+                       NULL
                };
 
-               hig_alert_type =
-                   g_type_register_static (gtk_dialog_get_type (),
-                                           "glHigAlert",
-                                           &hig_alert_info, 0);
+               type = g_type_register_static (GTK_TYPE_DIALOG,
+                                              "glHigAlert", &info, 0);
        }
 
-       return hig_alert_type;
+       return type;
 }
 
 static void
@@ -281,13 +280,13 @@ GtkWidget* gl_hig_alert_new      (GtkWindow      *parent,
 /* Boilerplate Dialog Object stuff.                                         */
 /****************************************************************************/
 /****************************************************************************/
-guint
+GType
 gl_hig_dialog_get_type (void)
 {
-       static guint hig_dialog_type = 0;
+       static GType type = 0;
 
-       if (!hig_dialog_type) {
-               GTypeInfo hig_dialog_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glHigDialogClass),
                        NULL,
                        NULL,
@@ -297,15 +296,14 @@ gl_hig_dialog_get_type (void)
                        sizeof (glHigDialog),
                        0,
                        (GInstanceInitFunc) gl_hig_dialog_init,
+                       NULL
                };
 
-               hig_dialog_type =
-                   g_type_register_static (gtk_dialog_get_type (),
-                                           "glHigDialog",
-                                           &hig_dialog_info, 0);
+               type = g_type_register_static (GTK_TYPE_DIALOG,
+                                              "glHigDialog", &info, 0);
        }
 
-       return hig_dialog_type;
+       return type;
 }
 
 static void
@@ -444,13 +442,13 @@ gl_hig_dialog_add_widget (glHigDialog   *dialog,
 /* Boilerplate Category Object stuff.                                       */
 /****************************************************************************/
 /****************************************************************************/
-guint
+GType
 gl_hig_category_get_type (void)
 {
-       static guint hig_category_type = 0;
+       static GType type = 0;
 
-       if (!hig_category_type) {
-               GTypeInfo hig_category_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glHigCategoryClass),
                        NULL,
                        NULL,
@@ -460,15 +458,14 @@ gl_hig_category_get_type (void)
                        sizeof (glHigCategory),
                        0,
                        (GInstanceInitFunc) gl_hig_category_init,
+                       NULL
                };
 
-               hig_category_type =
-                   g_type_register_static (gtk_vbox_get_type (),
-                                           "glHigCategory",
-                                           &hig_category_info, 0);
+               type = g_type_register_static (GTK_TYPE_VBOX,
+                                              "glHigCategory", &info, 0);
        }
 
-       return hig_category_type;
+       return type;
 }
 
 static void
@@ -561,13 +558,13 @@ gl_hig_category_add_widget (glHigCategory *cat,
 /* Boilerplate VBox Object stuff.                                           */
 /****************************************************************************/
 /****************************************************************************/
-guint
+GType
 gl_hig_vbox_get_type (void)
 {
-       static guint hig_vbox_type = 0;
+       static GType type = 0;
 
-       if (!hig_vbox_type) {
-               GTypeInfo hig_vbox_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glHigVBoxClass),
                        NULL,
                        NULL,
@@ -577,15 +574,14 @@ gl_hig_vbox_get_type (void)
                        sizeof (glHigVBox),
                        0,
                        (GInstanceInitFunc) gl_hig_vbox_init,
+                       NULL
                };
 
-               hig_vbox_type =
-                   g_type_register_static (gtk_vbox_get_type (),
-                                           "glHigVBox",
-                                           &hig_vbox_info, 0);
+               type = g_type_register_static (GTK_TYPE_VBOX,
+                                              "glHigVBox", &info, 0);
        }
 
-       return hig_vbox_type;
+       return type;
 }
 
 static void
@@ -667,13 +663,13 @@ gl_hig_vbox_add_widget (glHigVBox     *hig_vbox,
 /* Boilerplate HBox Object stuff.                                           */
 /****************************************************************************/
 /****************************************************************************/
-guint
+GType
 gl_hig_hbox_get_type (void)
 {
-       static guint hig_hbox_type = 0;
+       static GType type = 0;
 
-       if (!hig_hbox_type) {
-               GTypeInfo hig_hbox_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glHigHBoxClass),
                        NULL,
                        NULL,
@@ -683,15 +679,14 @@ gl_hig_hbox_get_type (void)
                        sizeof (glHigHBox),
                        0,
                        (GInstanceInitFunc) gl_hig_hbox_init,
+                       NULL
                };
 
-               hig_hbox_type =
-                   g_type_register_static (gtk_hbox_get_type (),
-                                           "glHigHBox",
-                                           &hig_hbox_info, 0);
+               type = g_type_register_static (GTK_TYPE_HBOX,
+                                              "glHigHBox", &info, 0);
        }
 
-       return hig_hbox_type;
+       return type;
 }
 
 static void
index c74df276927c38b8995802964f06d4e5dfd83cf5..35c5b9e7ac2fcadc895a550ed6bb2af443b2e11d 100644 (file)
@@ -56,7 +56,7 @@ struct _glHigAlertClass {
        GtkDialogClass    parent_class;
 };
 
-guint      gl_hig_alert_get_type    (void);
+GType      gl_hig_alert_get_type    (void) G_GNUC_CONST;
 
 GtkWidget *gl_hig_alert_new         (GtkWindow      *parent,
                                     GtkDialogFlags  flags,
@@ -93,7 +93,7 @@ struct _glHigDialogClass {
        GtkDialogClass    parent_class;
 };
 
-guint      gl_hig_dialog_get_type         (void);
+GType      gl_hig_dialog_get_type         (void) G_GNUC_CONST;
 
 GtkWidget *gl_hig_dialog_new              (void);
 
@@ -135,7 +135,7 @@ struct _glHigCategoryClass {
        GtkVBoxClass      parent_class;
 };
 
-guint      gl_hig_category_get_type         (void);
+GType      gl_hig_category_get_type         (void) G_GNUC_CONST;
 
 GtkWidget *gl_hig_category_new              (const gchar *header);
 
@@ -173,7 +173,7 @@ struct _glHigVBoxClass {
        GtkVBoxClass      parent_class;
 };
 
-guint      gl_hig_vbox_get_type         (void);
+GType      gl_hig_vbox_get_type         (void) G_GNUC_CONST;
 
 GtkWidget *gl_hig_vbox_new              (glHigVBoxType  type);
 
@@ -206,7 +206,7 @@ struct _glHigHBoxClass {
        GtkHBoxClass      parent_class;
 };
 
-guint      gl_hig_hbox_get_type           (void);
+GType      gl_hig_hbox_get_type           (void) G_GNUC_CONST;
 
 GtkWidget *gl_hig_hbox_new                (void);
 
index b49d4d34e1a81b409f14837414fc162ff7f11dd8..1222ede293b1b2ea456d465ef1aae59e8d6836bb 100644 (file)
@@ -84,7 +84,7 @@ gl_label_barcode_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glLabelBarcodeClass),
                        NULL,
                        NULL,
@@ -94,6 +94,7 @@ gl_label_barcode_get_type (void)
                        sizeof (glLabelBarcode),
                        0,
                        (GInstanceInitFunc) gl_label_barcode_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_LABEL_OBJECT,
index d2fda7170691c1bf55fe948ce0afe8a287f59a0c..7fa79742c988b8f835a40b6e74b3574c40013585 100644 (file)
@@ -54,7 +54,7 @@ struct _glLabelBarcodeClass {
 };
 
 
-GType           gl_label_barcode_get_type  (void);
+GType           gl_label_barcode_get_type  (void) G_GNUC_CONST;
 
 GObject        *gl_label_barcode_new       (glLabel        *label);
 
index d054882638a29bd181f1edea5bfaf943aad84315..cd948553453af4ba330a8c8f6a7d213cbae4c48f 100644 (file)
@@ -81,7 +81,7 @@ gl_label_box_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glLabelBoxClass),
                        NULL,
                        NULL,
@@ -91,6 +91,7 @@ gl_label_box_get_type (void)
                        sizeof (glLabelBox),
                        0,
                        (GInstanceInitFunc) gl_label_box_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_LABEL_OBJECT,
index 16b6741912b018c8bccd2bc17c0142af02c8eaf2..479e2b640f0c677519b09d7a1313a39873d9388b 100644 (file)
@@ -50,7 +50,7 @@ struct _glLabelBoxClass {
        glLabelObjectClass    parent_class;
 };
 
-GType         gl_label_box_get_type       (void);
+GType         gl_label_box_get_type       (void) G_GNUC_CONST;
 
 GObject      *gl_label_box_new            (glLabel    *label);
 
index c034e730a09c7268f2c456c39a3d2dd119f06181..01dc6f46b7b564c736510b8d61c1356ee8643aa7 100644 (file)
@@ -81,7 +81,7 @@ gl_label_ellipse_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glLabelEllipseClass),
                        NULL,
                        NULL,
@@ -91,6 +91,7 @@ gl_label_ellipse_get_type (void)
                        sizeof (glLabelEllipse),
                        0,
                        (GInstanceInitFunc) gl_label_ellipse_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_LABEL_OBJECT,
index bc950d9cb4256109fb8b20cb3cfe4c9c661d24c7..57527deaabb09a2a785672e63e15294d35a8b189 100644 (file)
@@ -50,7 +50,7 @@ struct _glLabelEllipseClass {
        glLabelObjectClass     parent_class;
 };
 
-GType           gl_label_ellipse_get_type       (void);
+GType           gl_label_ellipse_get_type       (void) G_GNUC_CONST;
 
 GObject        *gl_label_ellipse_new            (glLabel        *label);
 
index 4572b3d7ad52e0346f4228bea3467f15b4fff7bc..c785ad03339fc10450c3e6fb125578479daf40a6 100644 (file)
@@ -68,7 +68,7 @@ gl_label_image_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glLabelImageClass),
                        NULL,
                        NULL,
@@ -78,6 +78,7 @@ gl_label_image_get_type (void)
                        sizeof (glLabelImage),
                        0,
                        (GInstanceInitFunc) gl_label_image_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_LABEL_OBJECT,
index 0b6b98bab2dccdd366e64fc9f2387bd6f81d1196..31a480a677e8d38852e2debec3a0f64f4d159454 100644 (file)
@@ -52,7 +52,7 @@ struct _glLabelImageClass {
        glLabelObjectClass    parent_class;
 };
 
-GType            gl_label_image_get_type     (void);
+GType            gl_label_image_get_type     (void) G_GNUC_CONST;
 
 GObject         *gl_label_image_new          (glLabel       *label);
 
index 4878423233109d8faa5a0431e6192c5f7c14bff8..23fd5d87ebb51a58ab6107502c2bcc8a6d6a99ad 100644 (file)
@@ -75,7 +75,7 @@ gl_label_line_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glLabelLineClass),
                        NULL,
                        NULL,
@@ -85,6 +85,7 @@ gl_label_line_get_type (void)
                        sizeof (glLabelLine),
                        0,
                        (GInstanceInitFunc) gl_label_line_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_LABEL_OBJECT,
index 6caeb68537d1ca87b0baa3792b015444586d43ef..4c2c2d15ff237ef260fbaecb8029f293697c8ade 100644 (file)
@@ -50,7 +50,7 @@ struct _glLabelLineClass {
        glLabelObjectClass    parent_class;
 };
 
-GType        gl_label_line_get_type       (void);
+GType        gl_label_line_get_type       (void) G_GNUC_CONST;
 
 GObject     *gl_label_line_new            (glLabel     *label);
 
index 1df223e0af89cbfb4d54a96fad60433c1c071126..70780ce0d4804054eed44b42813db047f92d98b4 100644 (file)
@@ -90,7 +90,7 @@ gl_label_object_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glLabelObjectClass),
                        NULL,
                        NULL,
@@ -100,6 +100,7 @@ gl_label_object_get_type (void)
                        sizeof (glLabelObject),
                        0,
                        (GInstanceInitFunc) gl_label_object_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (G_TYPE_OBJECT,
index 222f71d1768a27ffccbe2103e3af53b6fd69b896..08e594db19f57afe097ee7d9da445d507f9e31be 100644 (file)
@@ -152,7 +152,7 @@ struct _glLabelObjectClass {
                             gpointer           user_data);
 };
 
-GType          gl_label_object_get_type              (void);
+GType          gl_label_object_get_type              (void) G_GNUC_CONST;
 
 GObject       *gl_label_object_new                   (glLabel           *label);
 
index b85c860d5ad1db352720e7fbe8c9918df8a56bc3..70ae32a72255fb9e964841f7df08604c540c9f75 100644 (file)
@@ -129,7 +129,7 @@ gl_label_text_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glLabelTextClass),
                        NULL,
                        NULL,
@@ -139,6 +139,7 @@ gl_label_text_get_type (void)
                        sizeof (glLabelText),
                        0,
                        (GInstanceInitFunc) gl_label_text_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_LABEL_OBJECT,
index 40bdb3aa5e82fc8e6a201120c0c37c08c8723e0e..99c6072825e1cef27c5376bb6fbba4511124d868 100644 (file)
@@ -54,7 +54,7 @@ struct _glLabelTextClass {
        glLabelObjectClass    parent_class;
 };
 
-GType          gl_label_text_get_type     (void);
+GType          gl_label_text_get_type     (void) G_GNUC_CONST;
 
 GObject       *gl_label_text_new          (glLabel          *label);
 
index a5f6de226dea03f9b67099b217d595353e6494d4..e2e097bf7acd54f2e2706b7bb2e64cfaf95038b8 100644 (file)
@@ -99,7 +99,7 @@ gl_label_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glLabelClass),
                        NULL,
                        NULL,
@@ -109,6 +109,7 @@ gl_label_get_type (void)
                        sizeof (glLabel),
                        0,
                        (GInstanceInitFunc) gl_label_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (G_TYPE_OBJECT,
index 791dbd23a6202fdde7195335e9891f7817557c02..8d2873c9f5f01ae12edb30682361dd21f517f7f3 100644 (file)
@@ -66,7 +66,7 @@ struct _glLabelClass {
 };
 
 
-GType         gl_label_get_type                (void);
+GType         gl_label_get_type                (void) G_GNUC_CONST;
 
 GObject      *gl_label_new                     (void);
 
index 98cb62808596a5bd6cf40befeb5fe42c7de3438f..c00b5536d7f33e5cbf0ca0e0524403759e20d432 100644 (file)
@@ -103,11 +103,11 @@ static void record_select_toggled_cb              (GtkCellRendererToggle
 GType
 gl_merge_properties_dialog_get_type (void)
 {
-       static GType dialog_type = 0;
+       static GType type = 0;
 
-       if (!dialog_type)
+       if (!type)
        {
-               static const GTypeInfo dialog_info =
+               static const GTypeInfo info =
                {
                        sizeof (glMergePropertiesDialogClass),
                        NULL,           /* base_init */
@@ -117,16 +117,15 @@ gl_merge_properties_dialog_get_type (void)
                        NULL,           /* class_data */
                        sizeof (glMergePropertiesDialog),
                        0,              /* n_preallocs */
-                       (GInstanceInitFunc) gl_merge_properties_dialog_init
+                       (GInstanceInitFunc) gl_merge_properties_dialog_init,
+                       NULL
                };
 
-               dialog_type = g_type_register_static (GL_TYPE_HIG_DIALOG,
-                                                     "glMergePropertiesDialog",
-                                                     &dialog_info, 
-                                                     0);
+               type = g_type_register_static (GL_TYPE_HIG_DIALOG,
+                                              "glMergePropertiesDialog", &info, 0);
        }
 
-       return dialog_type;
+       return type;
 }
 
 static void
index 5d16a1a31e3b514fed9e16f37c03e80a63ba2706..c7e71f714651ad06ac866e11951db89f7f61a834 100644 (file)
@@ -54,7 +54,7 @@ struct  _glMergePropertiesDialogClass
        glHigDialogClass                parent_class;
 };
 
-GtkType    gl_merge_properties_dialog_get_type    (void) G_GNUC_CONST;
+GType      gl_merge_properties_dialog_get_type    (void) G_GNUC_CONST;
 
 GtkWidget *gl_merge_properties_dialog_new         (glView *view);
 
index 5aceefe4122181afc876fa0478a20f0dc014d556..637badbed98b95e0fe7bfafbc845c6499fef8ebb 100644 (file)
@@ -95,7 +95,7 @@ gl_merge_text_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glMergeTextClass),
                        NULL,
                        NULL,
@@ -105,6 +105,7 @@ gl_merge_text_get_type (void)
                        sizeof (glMergeText),
                        0,
                        (GInstanceInitFunc) gl_merge_text_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_MERGE,
index f642600a7bd7e823c71de4e00c60d5413fa5bbac..7bf037006ac971901074ab68bbbeb09f5e6b17df 100644 (file)
@@ -59,7 +59,7 @@ struct _glMergeTextClass {
 };
 
 
-GType             gl_merge_text_get_type            (void);
+GType             gl_merge_text_get_type            (void) G_GNUC_CONST;
 
 G_END_DECLS
 
index cc10779ec17f3dcb0f8c761cc7842b7fa80cb279..d5f2b87d9e030bfabf688246544edc8733146b2a 100644 (file)
@@ -233,7 +233,7 @@ gl_merge_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glMergeClass),
                        NULL,
                        NULL,
@@ -243,6 +243,7 @@ gl_merge_get_type (void)
                        sizeof (glMerge),
                        0,
                        (GInstanceInitFunc) gl_merge_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (G_TYPE_OBJECT,
index 687cd3e77eca14f460cd99f12dcdd29cf275dd60..f69922dca528105e3af0cb0f03086dee78b51a42 100644 (file)
@@ -93,7 +93,7 @@ void              gl_merge_free_descriptions   (GList **descriptions);
 
 gchar            *gl_merge_description_to_name (gchar *description);
 
-GType             gl_merge_get_type            (void);
+GType             gl_merge_get_type            (void) G_GNUC_CONST;
 
 glMerge          *gl_merge_new                 (gchar             *name);
 
index 259108f73c20cbc433868f94a44c8addba9e0c5d..27412729c7747a74b7989472bc86c23b1d8d9dda 100644 (file)
@@ -75,11 +75,11 @@ static void prefs_changed_cb                    (glObjectEditor       *editor);
 GType
 gl_object_editor_get_type (void)
 {
-       static GType editor_type = 0;
+       static GType type = 0;
 
-       if (!editor_type)
+       if (!type)
        {
-               static const GTypeInfo editor_info =
+               static const GTypeInfo info =
                {
                        sizeof (glObjectEditorClass),
                        NULL,           /* base_init */
@@ -89,16 +89,15 @@ gl_object_editor_get_type (void)
                        NULL,           /* class_data */
                        sizeof (glObjectEditor),
                        0,              /* n_preallocs */
-                       (GInstanceInitFunc) gl_object_editor_init
+                       (GInstanceInitFunc) gl_object_editor_init,
+                       NULL
                };
 
-               editor_type = g_type_register_static (GTK_TYPE_VBOX,
-                                                     "glObjectEditor",
-                                                     &editor_info, 
-                                                     0);
+               type = g_type_register_static (GTK_TYPE_VBOX,
+                                              "glObjectEditor", &info, 0);
        }
 
-       return editor_type;
+       return type;
 }
 
 static void
index 8032463402a24e16a6a4a272d65f15dad398c418..36e9f4b457fbc50adf5d257445a7c0cabf8c3fc1 100644 (file)
@@ -113,11 +113,11 @@ static void update_prefs_from_object_page (glPrefsDialog      *dlg);
 GType
 gl_prefs_dialog_get_type (void)
 {
-       static GType dialog_type = 0;
+       static GType type = 0;
 
-       if (!dialog_type)
+       if (!type)
        {
-               static const GTypeInfo dialog_info =
+               static const GTypeInfo info =
                {
                        sizeof (glPrefsDialogClass),
                        NULL,           /* base_init */
@@ -127,16 +127,15 @@ gl_prefs_dialog_get_type (void)
                        NULL,           /* class_data */
                        sizeof (glPrefsDialog),
                        0,              /* n_preallocs */
-                       (GInstanceInitFunc) gl_prefs_dialog_init
+                       (GInstanceInitFunc) gl_prefs_dialog_init,
+                       NULL
                };
 
-               dialog_type = g_type_register_static (GL_TYPE_HIG_DIALOG,
-                                                     "glPrefsDialog",
-                                                     &dialog_info, 
-                                                     0);
+               type = g_type_register_static (GL_TYPE_HIG_DIALOG,
+                                              "glPrefsDialog", &info, 0);
        }
 
-       return dialog_type;
+       return type;
 }
 
 static void
index adc68b536d2e2a264e7de10bf79c1835447dbf1a..16be052a052442f928ca176294497892f67a7f14 100644 (file)
@@ -54,7 +54,7 @@ struct  _glPrefsDialogClass
        glHigDialogClass      parent_class;
 };
 
-GtkType        gl_prefs_dialog_get_type        (void) G_GNUC_CONST;
+GType          gl_prefs_dialog_get_type        (void) G_GNUC_CONST;
 
 GtkWidget      *gl_prefs_dialog_new            (GtkWindow *parent);
 
index 5abf224d4ddc8b4d7e954aef7fb102456964fbb8..bb141503da3cf5a4b384c2ad0bb781817d8fd896 100644 (file)
@@ -148,7 +148,7 @@ gl_prefs_model_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glPrefsModelClass),
                        NULL,
                        NULL,
@@ -158,6 +158,7 @@ gl_prefs_model_get_type (void)
                        sizeof (glPrefsModel),
                        0,
                        (GInstanceInitFunc) gl_prefs_model_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (G_TYPE_OBJECT,
index f73ad7e4cd509953a86d898bacdaa50a9cc74f68..fc2f93f6dd78b848547d68ba0fa4fb87f56b7a57 100644 (file)
@@ -111,7 +111,7 @@ struct _glPrefsModelClass {
 };
 
 
-GType         gl_prefs_model_get_type            (void);
+GType         gl_prefs_model_get_type            (void) G_GNUC_CONST;
 
 glPrefsModel *gl_prefs_model_new                 (void);
 
index b25fe51a62f87ca0025d935fd90ab84be377f961..7fd5307f69173e00342de7dbc5ed21919924b10a 100644 (file)
@@ -135,11 +135,11 @@ static void      print_sheets_merge               (GnomePrintConfig   *config,
 GType
 gl_print_dialog_get_type (void)
 {
-       static GType dialog_type = 0;
+       static GType type = 0;
 
-       if (!dialog_type)
+       if (!type)
        {
-               static const GTypeInfo dialog_info =
+               static const GTypeInfo info =
                {
                        sizeof (glPrintDialogClass),
                        NULL,           /* base_init */
@@ -149,16 +149,15 @@ gl_print_dialog_get_type (void)
                        NULL,           /* class_data */
                        sizeof (glPrintDialog),
                        0,              /* n_preallocs */
-                       (GInstanceInitFunc) gl_print_dialog_init
+                       (GInstanceInitFunc) gl_print_dialog_init,
+                       NULL
                };
 
-               dialog_type = g_type_register_static (GL_TYPE_HIG_DIALOG,
-                                                     "glPrintDialog",
-                                                     &dialog_info, 
-                                                     0);
+               type = g_type_register_static (GL_TYPE_HIG_DIALOG,
+                                              "glPrintDialog", &info, 0);
        }
 
-       return dialog_type;
+       return type;
 }
 
 static void
index 20e17c1e80dd28cddd8f2c65e66a4d32a4dfa4bc..0ccfc71b420211904f341a8ea03dd1040a3d75cc 100644 (file)
@@ -56,7 +56,7 @@ struct  _glPrintDialogClass
 };
 
 
-GtkType    gl_print_dialog_get_type            (void) G_GNUC_CONST;
+GType      gl_print_dialog_get_type            (void) G_GNUC_CONST;
 
 GtkWidget *gl_print_dialog_new                 (glLabel       *label,
                                                BonoboWindow  *win);
index cfb7ad6618e722aec7762a1784c81b6554a51dd3..66c28f7ee4b3432b68eb21a33e4f997ba2df7f83 100644 (file)
@@ -287,11 +287,11 @@ static void finish_cb                             (glTemplateDesigner      *dlg)
 GType
 gl_template_designer_get_type (void)
 {
-       static GType dialog_type = 0;
+       static GType type = 0;
 
-       if (!dialog_type)
+       if (!type)
        {
-               static const GTypeInfo dialog_info =
+               static const GTypeInfo info =
                {
                        sizeof (glTemplateDesignerClass),
                        NULL,           /* base_init */
@@ -301,16 +301,15 @@ gl_template_designer_get_type (void)
                        NULL,           /* class_data */
                        sizeof (glTemplateDesigner),
                        0,              /* n_preallocs */
-                       (GInstanceInitFunc) gl_template_designer_init
+                       (GInstanceInitFunc) gl_template_designer_init,
+                       NULL
                };
 
-               dialog_type = g_type_register_static (GTK_TYPE_WINDOW,
-                                                     "glTemplateDesigner",
-                                                     &dialog_info, 
-                                                     0);
+               type = g_type_register_static (GTK_TYPE_WINDOW,
+                                              "glTemplateDesigner", &info, 0);
        }
 
-       return dialog_type;
+       return type;
 }
 
 static void
index 7e1bc3dccb4d1e47fa0250fc548c5b9c4185320c..5cea341c4a9275e7b2ff0247207145402d554da3 100644 (file)
@@ -53,7 +53,7 @@ struct  _glTemplateDesignerClass
        GtkWindowClass             parent_class;
 };
 
-GtkType        gl_template_designer_get_type               (void) G_GNUC_CONST;
+GType          gl_template_designer_get_type               (void) G_GNUC_CONST;
 
 GtkWidget      *gl_template_designer_new                   (GtkWindow *parent);
 
index e61015ad3c10ccd5e94a31b199daf30308eb368e..603c033f0db8604f9155de72a04c02187d9681ca 100644 (file)
@@ -150,13 +150,13 @@ static void null_cmd             (BonoboUIComponent           *ui_component,
 /****************************************************************************/
 /* Boilerplate Object stuff.                                                */
 /****************************************************************************/
-guint
+GType
 gl_ui_property_bar_get_type (void)
 {
-       static guint property_bar_type = 0;
+       static GType type = 0;
 
-       if (!property_bar_type) {
-               GTypeInfo property_bar_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glUIPropertyBarClass),
                        NULL,
                        NULL,
@@ -166,15 +166,14 @@ gl_ui_property_bar_get_type (void)
                        sizeof (glUIPropertyBar),
                        0,
                        (GInstanceInitFunc) gl_ui_property_bar_instance_init,
+                       NULL
                };
 
-               property_bar_type =
-                       g_type_register_static (G_TYPE_OBJECT,
-                                               "glUIPropertyBar",
-                                               &property_bar_info, 0);
+               type = g_type_register_static (G_TYPE_OBJECT,
+                                              "glUIPropertyBar", &info, 0);
        }
 
-       return property_bar_type;
+       return type;
 }
 
 static void
index bb3fead1f532a718be766a0813939b3ebcec7b01..b1d3680c3de53f8017334896de4561721a56484d 100644 (file)
@@ -67,7 +67,7 @@ struct _glUIPropertyBarClass {
        GObjectClass         parent_class;
 };
 
-guint        gl_ui_property_bar_get_type          (void);
+GType        gl_ui_property_bar_get_type          (void) G_GNUC_CONST;
 
 GObject     *gl_ui_property_bar_new               (BonoboUIComponent *ui_component);
 
index 6f9ca793ad3c42bab293c37a0e0fb4ac086a3860..4487f13b213bcfd5aafe81a77f4dc4958fc07a0f 100644 (file)
@@ -68,13 +68,13 @@ static void     selection_changed_cb        (glView               *view,
 /****************************************************************************/
 /* Boilerplate Object stuff.                                                */
 /****************************************************************************/
-guint
+GType
 gl_ui_sidebar_get_type (void)
 {
-       static guint sidebar_type = 0;
+       static GType type = 0;
 
-       if (!sidebar_type) {
-               GTypeInfo sidebar_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glUISidebarClass),
                        NULL,
                        NULL,
@@ -84,15 +84,14 @@ gl_ui_sidebar_get_type (void)
                        sizeof (glUISidebar),
                        0,
                        (GInstanceInitFunc) gl_ui_sidebar_instance_init,
+                       NULL
                };
 
-               sidebar_type =
-                       g_type_register_static (GTK_TYPE_VBOX,
-                                               "glUISidebar",
-                                               &sidebar_info, 0);
+               type = g_type_register_static (GTK_TYPE_VBOX,
+                                              "glUISidebar", &info, 0);
        }
 
-       return sidebar_type;
+       return type;
 }
 
 static void
index a7f62fab6e9e779fa04d90d2e3bc0c91bb90774c..37892e821d08c7933a1dcef38bf5c13a6922266e 100644 (file)
@@ -58,7 +58,7 @@ struct _glUISidebarClass {
        GtkVBoxClass         parent_class;
 };
 
-guint        gl_ui_sidebar_get_type          (void);
+GType        gl_ui_sidebar_get_type          (void) G_GNUC_CONST;
 
 GObject     *gl_ui_sidebar_new               (BonoboUIComponent *ui_component);
 
index 22d4054975e68e996c82180243368463f1da8b1f..99d088f42274dd5156cc8642c8565c07f251cea8 100644 (file)
@@ -98,7 +98,7 @@ gl_view_barcode_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glViewBarcodeClass),
                        NULL,
                        NULL,
@@ -108,6 +108,7 @@ gl_view_barcode_get_type (void)
                        sizeof (glViewBarcode),
                        0,
                        (GInstanceInitFunc) gl_view_barcode_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_VIEW_OBJECT,
index 7bb9112d36b4fe9738979b94c2eef82b5768daa8..7edbeff0385368a86627a819c4e214fecd1a14fe 100644 (file)
@@ -51,19 +51,19 @@ struct _glViewBarcodeClass {
 };
 
 
-extern GType          gl_view_barcode_get_type (void);
+GType          gl_view_barcode_get_type (void) G_GNUC_CONST;
 
-extern glViewObject  *gl_view_barcode_new      (glLabelBarcode *object,
-                                               glView     *view);
+glViewObject  *gl_view_barcode_new      (glLabelBarcode *object,
+                                        glView     *view);
 
 
 /* cursor for creating barcode objects */
-extern GdkCursor *gl_view_barcode_get_create_cursor (void);
+GdkCursor *gl_view_barcode_get_create_cursor (void);
 
 /* event handler for creating barcode objects */
-extern gint gl_view_barcode_create_event_handler    (GnomeCanvas *canvas,
-                                                    GdkEvent    *event,
-                                                    glView      *view);
+gint gl_view_barcode_create_event_handler    (GnomeCanvas *canvas,
+                                             GdkEvent    *event,
+                                             glView      *view);
 
 G_END_DECLS
 
index 92cac0b632f426d3183a15e3ab30bb94306eed88..5095a357fd290c58fe0a73a454bbc56f76763aef 100644 (file)
@@ -94,7 +94,7 @@ gl_view_box_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glViewBoxClass),
                        NULL,
                        NULL,
@@ -104,6 +104,7 @@ gl_view_box_get_type (void)
                        sizeof (glViewBox),
                        0,
                        (GInstanceInitFunc) gl_view_box_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_VIEW_OBJECT,
index 12cb904759ec85701fb0d5bec8b27b0a1b837c7d..af63d5e55d55f5ce87ccc3fce6490efdbfa4a077 100644 (file)
@@ -51,19 +51,19 @@ struct _glViewBoxClass {
 };
 
 
-extern GType          gl_view_box_get_type (void);
+GType          gl_view_box_get_type (void) G_GNUC_CONST;
 
-extern glViewObject  *gl_view_box_new      (glLabelBox *object,
-                                           glView     *view);
+glViewObject  *gl_view_box_new      (glLabelBox *object,
+                                    glView     *view);
 
 
 /* cursor for creating box objects */
-extern GdkCursor *gl_view_box_get_create_cursor (void);
+GdkCursor *gl_view_box_get_create_cursor (void);
 
 /* event handler for creating box objects */
-extern gint gl_view_box_create_event_handler    (GnomeCanvas *canvas,
-                                                GdkEvent    *event,
-                                                glView      *view);
+gint gl_view_box_create_event_handler    (GnomeCanvas *canvas,
+                                         GdkEvent    *event,
+                                         glView      *view);
 
 G_END_DECLS
 
index fd2689cc6c0fab710c2a9e5bd2550a87e06d16bc..986436185a39a2c0842c3b2db7f8c0426883e1a7 100644 (file)
@@ -94,7 +94,7 @@ gl_view_ellipse_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glViewEllipseClass),
                        NULL,
                        NULL,
@@ -104,6 +104,7 @@ gl_view_ellipse_get_type (void)
                        sizeof (glViewEllipse),
                        0,
                        (GInstanceInitFunc) gl_view_ellipse_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_VIEW_OBJECT,
index ad0ce23f38d0a261ab0b9410b8b4048809ee00a3..d7f13b6f196318b06372509f97741fada2f51f49 100644 (file)
@@ -51,19 +51,19 @@ struct _glViewEllipseClass {
 };
 
 
-extern GType          gl_view_ellipse_get_type (void);
+GType          gl_view_ellipse_get_type (void) G_GNUC_CONST;
 
-extern glViewObject  *gl_view_ellipse_new      (glLabelEllipse *object,
-                                               glView     *view);
+glViewObject  *gl_view_ellipse_new      (glLabelEllipse *object,
+                                        glView         *view);
 
 
 /* cursor for creating ellipse objects */
-extern GdkCursor *gl_view_ellipse_get_create_cursor (void);
+GdkCursor *gl_view_ellipse_get_create_cursor (void);
 
 /* event handler for creating ellipse objects */
-extern gint gl_view_ellipse_create_event_handler    (GnomeCanvas *canvas,
-                                                    GdkEvent    *event,
-                                                    glView      *view);
+gint gl_view_ellipse_create_event_handler    (GnomeCanvas *canvas,
+                                             GdkEvent    *event,
+                                             glView      *view);
 
 G_END_DECLS
 
index 1cfdc95c6a7ea34099d17527cb995bd96746c72c..7bd596ca4e87de00798c5a1bb1b07e740eedab18 100644 (file)
@@ -156,7 +156,7 @@ gl_view_highlight_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glViewHighlightClass),
                        NULL,
                        NULL,
@@ -166,6 +166,7 @@ gl_view_highlight_get_type (void)
                        sizeof (glViewHighlight),
                        0,
                        (GInstanceInitFunc) gl_view_highlight_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (G_TYPE_OBJECT,
index 8f6bfa52d6753f417ab24ba06fd34a0dc348a159..fceb40e964a0f7201da0f5bacc51e286fd4ddccc 100644 (file)
@@ -60,7 +60,7 @@ struct _glViewHighlightClass {
 
 
 
-GType    gl_view_highlight_get_type (void);
+GType    gl_view_highlight_get_type (void) G_GNUC_CONST;
 
 GObject *gl_view_highlight_new      (glViewObject         *view_object,
                                     glViewHighlightStyle  style);
index 1521b300c00f2294d62d15c7289127ddb2596236..176b169cdfce0fd725ad64f83f1154ad7e66f32f 100644 (file)
@@ -96,7 +96,7 @@ gl_view_image_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glViewImageClass),
                        NULL,
                        NULL,
@@ -106,6 +106,7 @@ gl_view_image_get_type (void)
                        sizeof (glViewImage),
                        0,
                        (GInstanceInitFunc) gl_view_image_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_VIEW_OBJECT,
index e36154ad9e48cf8629efa1920f9a68da6f3bded9..d19c9810ffdaa20735730b7c5d23d96479bac362 100644 (file)
@@ -51,19 +51,19 @@ struct _glViewImageClass {
 };
 
 
-extern GType          gl_view_image_get_type (void);
+GType          gl_view_image_get_type (void) G_GNUC_CONST;
 
-extern glViewObject  *gl_view_image_new      (glLabelImage *object,
-                                             glView     *view);
+glViewObject  *gl_view_image_new      (glLabelImage *object,
+                                      glView       *view);
 
 
 /* cursor for creating image objects */
-extern GdkCursor *gl_view_image_get_create_cursor (void);
+GdkCursor *gl_view_image_get_create_cursor (void);
 
 /* event handler for creating image objects */
-extern gint gl_view_image_create_event_handler    (GnomeCanvas *canvas,
-                                                  GdkEvent    *event,
-                                                  glView      *view);
+gint gl_view_image_create_event_handler    (GnomeCanvas *canvas,
+                                           GdkEvent    *event,
+                                           glView      *view);
 
 G_END_DECLS
 
index 5ab61db3ece161a1c06657bdb44724813b075ebd..143ed481199acbe90e73b4a3d489fcd0ea315ec4 100644 (file)
@@ -92,7 +92,7 @@ gl_view_line_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glViewLineClass),
                        NULL,
                        NULL,
@@ -102,6 +102,7 @@ gl_view_line_get_type (void)
                        sizeof (glViewLine),
                        0,
                        (GInstanceInitFunc) gl_view_line_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_VIEW_OBJECT,
index 23618996e1925b120837ec402973d375a816bd46..5d532d1aa86662ce2049b9d4755ff39de653ff9c 100644 (file)
@@ -51,19 +51,19 @@ struct _glViewLineClass {
 };
 
 
-extern GType          gl_view_line_get_type (void);
+GType          gl_view_line_get_type (void) G_GNUC_CONST;
 
-extern glViewObject  *gl_view_line_new      (glLabelLine *object,
-                                            glView     *view);
+glViewObject  *gl_view_line_new      (glLabelLine *object,
+                                     glView      *view);
 
 
 /* cursor for creating line objects */
-extern GdkCursor *gl_view_line_get_create_cursor (void);
+GdkCursor *gl_view_line_get_create_cursor (void);
 
 /* event handler for creating line objects */
-extern gint gl_view_line_create_event_handler    (GnomeCanvas *canvas,
-                                                 GdkEvent    *event,
-                                                 glView      *view);
+gint gl_view_line_create_event_handler    (GnomeCanvas *canvas,
+                                          GdkEvent    *event,
+                                          glView      *view);
 
 G_END_DECLS
 
index 7c19c98941287ee1223213aa0d20ba0d20131d25..7f218ad8fb5dda51ba810156b47937347b3518be 100644 (file)
@@ -95,7 +95,7 @@ gl_view_object_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glViewObjectClass),
                        NULL,
                        NULL,
@@ -105,6 +105,7 @@ gl_view_object_get_type (void)
                        sizeof (glViewObject),
                        0,
                        (GInstanceInitFunc) gl_view_object_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (G_TYPE_OBJECT,
index b1af97fbf5d819674745a5381b5a0f3858d394c7..0559a888e4cf81ca410c316d1a46e65c6c9f3ba2 100644 (file)
@@ -62,7 +62,7 @@ struct _glViewObjectClass {
 
 G_BEGIN_DECLS
 
-GType            gl_view_object_get_type          (void);
+GType            gl_view_object_get_type          (void) G_GNUC_CONST;
 
 GObject         *gl_view_object_new               (void);
 
index 45c60bbd75dd31be68780991df0dab6aae6c8dd6..a4e492577871663fc42350df66502ea5012e1e24 100644 (file)
@@ -126,7 +126,7 @@ gl_view_text_get_type (void)
        static GType type = 0;
 
        if (!type) {
-               GTypeInfo info = {
+               static const GTypeInfo info = {
                        sizeof (glViewTextClass),
                        NULL,
                        NULL,
@@ -136,6 +136,7 @@ gl_view_text_get_type (void)
                        sizeof (glViewText),
                        0,
                        (GInstanceInitFunc) gl_view_text_instance_init,
+                       NULL
                };
 
                type = g_type_register_static (GL_TYPE_VIEW_OBJECT,
index 392f4674b51afa26e37ce5be23f63d53c7173d93..679e69a8b414ff35afb1d8e3b771cb5c436e40b3 100644 (file)
@@ -51,19 +51,19 @@ struct _glViewTextClass {
 };
 
 
-extern GType          gl_view_text_get_type (void);
+GType          gl_view_text_get_type (void) G_GNUC_CONST;
 
-extern glViewObject  *gl_view_text_new      (glLabelText *object,
-                                            glView     *view);
+glViewObject  *gl_view_text_new      (glLabelText *object,
+                                     glView      *view);
 
 
 /* cursor for creating text objects */
-extern GdkCursor *gl_view_text_get_create_cursor (void);
+GdkCursor *gl_view_text_get_create_cursor (void);
 
 /* event handler for creating text objects */
-extern gint gl_view_text_create_event_handler    (GnomeCanvas *canvas,
-                                                 GdkEvent    *event,
-                                                 glView      *view);
+gint gl_view_text_create_event_handler    (GnomeCanvas *canvas,
+                                          GdkEvent    *event,
+                                          glView      *view);
 
 G_END_DECLS
 
index 5f605209337a7e84eab58de76537c4d59616a96d..fd35d74a3566138dee5f22f153160d86ca387768 100644 (file)
@@ -215,13 +215,13 @@ static void       selection_received_cb          (GtkWidget         *widget,
 /****************************************************************************/
 /* Boilerplate Object stuff.                                                */
 /****************************************************************************/
-guint
+GType
 gl_view_get_type (void)
 {
-       static guint view_type = 0;
+       static GType type = 0;
 
-       if (!view_type) {
-               GTypeInfo view_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glViewClass),
                        NULL,
                        NULL,
@@ -231,14 +231,14 @@ gl_view_get_type (void)
                        sizeof (glView),
                        0,
                        (GInstanceInitFunc) gl_view_init,
+                       NULL
                };
 
-               view_type =
-                   g_type_register_static (gtk_vbox_get_type (),
-                                           "glView", &view_info, 0);
+               type = g_type_register_static (GTK_TYPE_VBOX,
+                                              "glView", &info, 0);
        }
 
-       return view_type;
+       return type;
 }
 
 static void
index f086bc2406a2ce561b105a607c23683a782d8f3d..1eebe09c65437cc4024a3efe1687670cb5576480 100644 (file)
@@ -127,7 +127,7 @@ struct _glViewClass {
 
 G_BEGIN_DECLS
 
-guint      gl_view_get_type                (void);
+GType      gl_view_get_type                (void) G_GNUC_CONST;
 
 GtkWidget *gl_view_new                     (glLabel           *label);
 
index 6eef0dcc943c9b1b8deef2f94c272b5e9b4ad8f4..9407c6d7990175bc6617a13aa5c8cbad0aa7bd12 100644 (file)
@@ -65,11 +65,11 @@ static GtkTableClass *parent_class = NULL;
 GType
 gl_wdgt_chain_button_get_type (void)
 {
-  static GType button_type = 0;
+  static GType type = 0;
 
-  if (! button_type)
+  if (! type)
     {
-      static const GTypeInfo button_info =
+      static const GTypeInfo info =
       {
         sizeof (glWdgtChainButtonClass),
         NULL,           /* base_init      */
@@ -80,13 +80,14 @@ gl_wdgt_chain_button_get_type (void)
         sizeof (glWdgtChainButton),
         0,              /* n_preallocs    */
         (GInstanceInitFunc) gl_wdgt_chain_button_init,
+       NULL
       };
 
-      button_type = g_type_register_static (GTK_TYPE_TABLE, "glWdgtChainButton",
-                                           &button_info, 0);
+      type = g_type_register_static (GTK_TYPE_TABLE,
+                                    "glWdgtChainButton", &info, 0);
     }
 
-  return button_type;
+  return type;
 }
 
 static void
index 9f2bb6f77ad6d9866a8afe9d4cf11a56f5fecadf..3b8e044f1e481823fa5fb61d1461e960f22900ee 100644 (file)
@@ -71,13 +71,13 @@ static void radio_toggled_cb                   (GtkToggleButton   *togglebutton,
 /****************************************************************************/
 /* Boilerplate Object stuff.                                                */
 /****************************************************************************/
-guint
+GType
 gl_wdgt_image_select_get_type (void)
 {
-       static guint wdgt_image_select_type = 0;
+       static GType type = 0;
 
-       if (!wdgt_image_select_type) {
-               GTypeInfo wdgt_image_select_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glWdgtImageSelectClass),
                        NULL,
                        NULL,
@@ -87,15 +87,14 @@ gl_wdgt_image_select_get_type (void)
                        sizeof (glWdgtImageSelect),
                        0,
                        (GInstanceInitFunc) gl_wdgt_image_select_instance_init,
+                       NULL
                };
 
-               wdgt_image_select_type =
-                       g_type_register_static (gl_hig_vbox_get_type (),
-                                               "glWdgtImageSelect",
-                                               &wdgt_image_select_info, 0);
+               type = g_type_register_static (GL_TYPE_HIG_VBOX,
+                                              "glWdgtImageSelect", &info, 0);
        }
 
-       return wdgt_image_select_type;
+       return type;
 }
 
 static void
index 08e429dd38925ffdd0b93d751a8039e51928baec..69e4eb408cd02c3f2c1dc748edd2b1fe842e988a 100644 (file)
@@ -60,7 +60,7 @@ struct _glWdgtImageSelectClass {
                         gpointer           user_data);
 };
 
-guint       gl_wdgt_image_select_get_type             (void);
+GType       gl_wdgt_image_select_get_type             (void) G_GNUC_CONST;
 
 GtkWidget  *gl_wdgt_image_select_new                  (glMerge           *merge,
                                                       glTextNode        *text_node);
index c0e15f0ce978d57dc4e807de40cb366425f35eb1..acc6402465e17d5b836eccfec1b245f476963fe7 100644 (file)
@@ -81,13 +81,13 @@ static gchar *get_label_size_desc              (const glTemplate       *template
 /****************************************************************************/
 /* Boilerplate Object stuff.                                                */
 /****************************************************************************/
-guint
+GType
 gl_wdgt_media_select_get_type (void)
 {
-       static guint wdgt_media_select_type = 0;
+       static GType type = 0;
 
-       if (!wdgt_media_select_type) {
-               GTypeInfo wdgt_media_select_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glWdgtMediaSelectClass),
                        NULL,
                        NULL,
@@ -97,15 +97,14 @@ gl_wdgt_media_select_get_type (void)
                        sizeof (glWdgtMediaSelect),
                        0,
                        (GInstanceInitFunc) gl_wdgt_media_select_instance_init,
+                       NULL
                };
 
-               wdgt_media_select_type =
-                       g_type_register_static (gl_hig_vbox_get_type (),
-                                               "glWdgtMediaSelect",
-                                               &wdgt_media_select_info, 0);
+               type = g_type_register_static (GL_TYPE_HIG_VBOX,
+                                              "glWdgtMediaSelect", &info, 0);
        }
 
-       return wdgt_media_select_type;
+       return type;
 }
 
 static void
index 7505e4c8f97e5b60c0a3764b121d986c865d516e..3d9f0539962fe32011c7975506e369a3afe87a6c 100644 (file)
@@ -62,7 +62,7 @@ struct _glWdgtMediaSelectClass {
        void (*changed) (glWdgtMediaSelect * media_select, gpointer user_data);
 };
 
-guint      gl_wdgt_media_select_get_type      (void);
+GType      gl_wdgt_media_select_get_type      (void) G_GNUC_CONST;
 
 GtkWidget *gl_wdgt_media_select_new           (void);
 
index ffc6b30ead31cfef92e8b0ca10d20bd13f91f632..c7475430d7c47957c5233a733da3d20052ee6226 100644 (file)
@@ -89,13 +89,13 @@ static void style_set_cb                       (GtkWidget        *widget,
 /****************************************************************************/
 /* Boilerplate Object stuff.                                                */
 /****************************************************************************/
-guint
+GType
 gl_wdgt_mini_preview_get_type (void)
 {
-       static guint wdgt_mini_preview_type = 0;
+       static GType type = 0;
 
-       if (!wdgt_mini_preview_type) {
-               GTypeInfo wdgt_mini_preview_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glWdgtMiniPreviewClass),
                        NULL,
                        NULL,
@@ -105,15 +105,14 @@ gl_wdgt_mini_preview_get_type (void)
                        sizeof (glWdgtMiniPreview),
                        0,
                        (GInstanceInitFunc) gl_wdgt_mini_preview_instance_init,
+                       NULL
                };
 
-               wdgt_mini_preview_type =
-                       g_type_register_static (gtk_hbox_get_type (),
-                                               "glWdgtMiniPreview",
-                                               &wdgt_mini_preview_info, 0);
+               type = g_type_register_static (GTK_TYPE_HBOX,
+                                              "glWdgtMiniPreview", &info, 0);
        }
 
-       return wdgt_mini_preview_type;
+       return type;
 }
 
 static void
index d6049c0e645742d2f3b7cbec264efd24a5738539..9c3a9e623289d5b1d1a29521442a1af65886ecb6 100644 (file)
@@ -71,7 +71,7 @@ struct _glWdgtMiniPreviewClass {
                         gpointer user_data);
 };
 
-guint      gl_wdgt_mini_preview_get_type          (void);
+GType      gl_wdgt_mini_preview_get_type          (void) G_GNUC_CONST;
 
 GtkWidget *gl_wdgt_mini_preview_new               (gint               height,
                                                   gint               width);
index 09899f801b91bed969a4d5c0c1156c458bced05c..ca202671f5ffe9543a1f9bf82609c4a0d8fc9aec 100644 (file)
@@ -63,13 +63,13 @@ preview_pressed (glWdgtMiniPreview *mini_preview,
 /****************************************************************************/
 /* Boilerplate Object stuff.                                                */
 /****************************************************************************/
-guint
+GType
 gl_wdgt_print_copies_get_type (void)
 {
-       static guint wdgt_print_copies_type = 0;
+       static GType type = 0;
 
-       if (!wdgt_print_copies_type) {
-               GTypeInfo wdgt_print_copies_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glWdgtPrintCopiesClass),
                        NULL,
                        NULL,
@@ -79,15 +79,14 @@ gl_wdgt_print_copies_get_type (void)
                        sizeof (glWdgtPrintCopies),
                        0,
                        (GInstanceInitFunc) gl_wdgt_print_copies_instance_init,
+                       NULL
                };
 
-               wdgt_print_copies_type =
-                       g_type_register_static (gl_hig_hbox_get_type (),
-                                               "glWdgtPrintCopies",
-                                               &wdgt_print_copies_info, 0);
+               type = g_type_register_static (GL_TYPE_HIG_HBOX,
+                                              "glWdgtPrintCopies", &info, 0);
        }
 
-       return wdgt_print_copies_type;
+       return type;
 }
 
 static void
index c0a85daac1c71fe021954a9fce4b96f63f13f0e1..dd6dacc0c891c5216cee344bc7f55f74bc5702c8 100644 (file)
@@ -27,6 +27,8 @@
 #include "label.h"
 #include "hig.h"
 
+G_BEGIN_DECLS
+
 #define GL_TYPE_WDGT_PRINT_COPIES (gl_wdgt_print_copies_get_type ())
 #define GL_WDGT_PRINT_COPIES(obj) \
         (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_PRINT_COPIES, glWdgtPrintCopies ))
@@ -59,18 +61,20 @@ struct _glWdgtPrintCopiesClass {
        glHigHBoxClass parent_class;
 };
 
-extern guint gl_wdgt_print_copies_get_type (void);
+GType      gl_wdgt_print_copies_get_type  (void) G_GNUC_CONST;
+
+GtkWidget *gl_wdgt_print_copies_new       (glLabel           *label);
 
-extern GtkWidget *gl_wdgt_print_copies_new (glLabel * label);
+void       gl_wdgt_print_copies_get_range (glWdgtPrintCopies *copies,
+                                          gint              *n_sheets,
+                                          gint              *first_label,
+                                          gint              *last_label);
 
-extern void gl_wdgt_print_copies_get_range (glWdgtPrintCopies * copies,
-                                           gint * n_sheets,
-                                           gint * first_label,
-                                           gint * last_label);
+void       gl_wdgt_print_copies_set_range (glWdgtPrintCopies *copies,
+                                          gint               n_sheets,
+                                          gint               first_label,
+                                          gint               last_label);
 
-extern void gl_wdgt_print_copies_set_range (glWdgtPrintCopies * copies,
-                                           gint n_sheets,
-                                           gint first_label,
-                                           gint last_label);
+G_END_DECLS
 
 #endif
index 51a0143250bacf421aa54c99f6af5fd618182556..290e6a28db84031328620b46376835c68f5107ba 100644 (file)
@@ -64,13 +64,13 @@ static void spin_cb                           (GtkSpinButton * spinbutton,
 /****************************************************************************/
 /* Boilerplate Object stuff.                                                */
 /****************************************************************************/
-guint
+GType
 gl_wdgt_print_merge_get_type (void)
 {
-       static guint wdgt_print_merge_type = 0;
+       static GType type = 0;
 
-       if (!wdgt_print_merge_type) {
-               GTypeInfo wdgt_print_merge_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glWdgtPrintMergeClass),
                        NULL,
                        NULL,
@@ -80,15 +80,14 @@ gl_wdgt_print_merge_get_type (void)
                        sizeof (glWdgtPrintMerge),
                        0,
                        (GInstanceInitFunc) gl_wdgt_print_merge_instance_init,
+                       NULL
                };
 
-               wdgt_print_merge_type =
-                       g_type_register_static (gl_hig_hbox_get_type (),
-                                               "glWdgtPrintMerge",
-                                               &wdgt_print_merge_info, 0);
+               type = g_type_register_static (GL_TYPE_HIG_HBOX,
+                                              "glWdgtPrintMerge", &info, 0);
        }
 
-       return wdgt_print_merge_type;
+       return type;
 }
 
 static void
index dbe8cba97c9e18a86075fbb8038b27721dfcd335..2b6adf54fdb7425c9e43b95b37b4cf19de02e475 100644 (file)
@@ -27,6 +27,8 @@
 #include "label.h"
 #include "hig.h"
 
+G_BEGIN_DECLS
+
 #define GL_TYPE_WDGT_PRINT_MERGE (gl_wdgt_print_merge_get_type ())
 #define GL_WDGT_PRINT_MERGE(obj) \
         (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_PRINT_MERGE, glWdgtPrintMerge ))
@@ -58,19 +60,21 @@ struct _glWdgtPrintMergeClass {
        glHigHBoxClass parent_class;
 };
 
-extern guint gl_wdgt_print_merge_get_type  (void);
+GType      gl_wdgt_print_merge_get_type   (void) G_GNUC_CONST;
+
+GtkWidget *gl_wdgt_print_merge_new        (glLabel          *label);
 
-extern GtkWidget *gl_wdgt_print_merge_new  (glLabel * label);
+void       gl_wdgt_print_merge_get_copies (glWdgtPrintMerge *merge,
+                                          gint             *n_copies,
+                                          gint             *first_label,
+                                          gboolean         *collate_flag);
 
-extern void gl_wdgt_print_merge_get_copies (glWdgtPrintMerge * merge,
-                                           gint * n_copies,
-                                           gint * first_label,
-                                           gboolean * collate_flag);
+void       gl_wdgt_print_merge_set_copies (glWdgtPrintMerge *merge,
+                                          gint              n_copies,
+                                          gint              first_label,
+                                          gint              n_records,
+                                          gboolean          collate_flag);
 
-extern void gl_wdgt_print_merge_set_copies (glWdgtPrintMerge * merge,
-                                           gint n_copies,
-                                           gint first_label,
-                                           gint n_records,
-                                           gboolean collate_flag);
+G_END_DECLS
 
 #endif
index e5100c8252910be06d6bbdf454c0ef028254d6be..e8d21884c95641baf82cc4bd6d3247f99285d33d 100644 (file)
@@ -94,13 +94,13 @@ static GnomeCanvasItem *cdbc_item              (GnomeCanvasGroup *group,
 /****************************************************************************/
 /* Boilerplate Object stuff.                                                */
 /****************************************************************************/
-guint
+GType
 gl_wdgt_rotate_label_get_type (void)
 {
-       static guint wdgt_rotate_label_type = 0;
+       static GType type = 0;
 
-       if (!wdgt_rotate_label_type) {
-               GTypeInfo wdgt_rotate_label_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glWdgtRotateLabelClass),
                        NULL,
                        NULL,
@@ -110,16 +110,14 @@ gl_wdgt_rotate_label_get_type (void)
                        sizeof (glWdgtRotateLabel),
                        0,
                        (GInstanceInitFunc) gl_wdgt_rotate_label_instance_init,
-
+                       NULL
                };
 
-               wdgt_rotate_label_type =
-                       g_type_register_static (gl_hig_hbox_get_type (),
-                                               "glWdgtRotateLabel",
-                                               &wdgt_rotate_label_info, 0);
+               type = g_type_register_static (GL_TYPE_HIG_HBOX,
+                                              "glWdgtRotateLabel", &info, 0);
        }
 
-       return wdgt_rotate_label_type;
+       return type;
 }
 
 static void
index fc5661cd681aeb4b9a2500815aa361e74c35e36d..bcb3fc7303332c4c2f447adbbe5d5212e1b324cf 100644 (file)
@@ -27,6 +27,8 @@
 #include "hig.h"
 #include <libglabels/template.h>
 
+G_BEGIN_DECLS
+
 #define GL_TYPE_WDGT_ROTATE_LABEL (gl_wdgt_rotate_label_get_type ())
 #define GL_WDGT_ROTATE_LABEL(obj) \
         (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_ROTATE_LABEL, glWdgtRotateLabel ))
@@ -57,16 +59,18 @@ struct _glWdgtRotateLabelClass {
                         gpointer user_data);
 };
 
-extern guint     gl_wdgt_rotate_label_get_type (void);
+GType     gl_wdgt_rotate_label_get_type  (void) G_GNUC_CONST;
+
+GtkWidget *gl_wdgt_rotate_label_new      (void);
 
-extern GtkWidget *gl_wdgt_rotate_label_new (void);
+gboolean  gl_wdgt_rotate_label_get_state (glWdgtRotateLabel *wdgt_rotate_label);
 
-extern gboolean  gl_wdgt_rotate_label_get_state (glWdgtRotateLabel * wdgt_rotate_label);
+void      gl_wdgt_rotate_label_set_state (glWdgtRotateLabel *wdgt_rotate_label,
+                                         gboolean           state);
 
-extern void      gl_wdgt_rotate_label_set_state (glWdgtRotateLabel * wdgt_rotate_label,
-                                                gboolean state);
+void      gl_wdgt_rotate_label_set_template_name (glWdgtRotateLabel *wdgt_rotate_label,
+                                                 gchar             *name);
 
-extern void      gl_wdgt_rotate_label_set_template_name (glWdgtRotateLabel * wdgt_rotate_label,
-                                                        gchar * name);
+G_END_DECLS
 
 #endif
index 0c24f889c43c5f682991a65b02cd8644ff6de77d..d3206658eb5ad2a46e7195dbfca51a2584791beb 100644 (file)
@@ -27,6 +27,7 @@
 #include "util.h"
 #include "xml-label.h"
 #include "prefs.h"
+#include "file.h"
 
 #include "debug.h"
 
@@ -89,13 +90,13 @@ static void     modified_changed_cb    (glLabel       *label,
 /****************************************************************************/
 /* Boilerplate Object stuff.                                                */
 /****************************************************************************/
-guint
+GType
 gl_window_get_type (void)
 {
-       static guint window_type = 0;
+       static GType type = 0;
 
-       if (!window_type) {
-               GTypeInfo window_info = {
+       if (!type) {
+               static const GTypeInfo info = {
                        sizeof (glWindowClass),
                        NULL,
                        NULL,
@@ -105,15 +106,14 @@ gl_window_get_type (void)
                        sizeof (glWindow),
                        0,
                        (GInstanceInitFunc) gl_window_init,
+                       NULL
                };
 
-               window_type =
-                   g_type_register_static (bonobo_window_get_type (),
-                                           "glWindow",
-                                           &window_info, 0);
+               type = g_type_register_static (BONOBO_TYPE_WINDOW,
+                                              "glWindow", &info, 0);
        }
 
-       return window_type;
+       return type;
 }
 
 static void
index 402d131a819413b112a0e0094cca021b268ce399..5a3906848f5d4a222c7022ca40e2e44a1998b2f5 100644 (file)
@@ -68,7 +68,7 @@ struct _glWindowClass {
        BonoboWindowClass    parent_class;
 };
 
-guint        gl_window_get_type          (void);
+GType        gl_window_get_type          (void) G_GNUC_CONST;
 
 GtkWidget   *gl_window_new               (void);