get_type() patches



Hi Michael,

Here are patches to libbonobo and libbonoboui that make all object
get_type() functions G_GNUC_CONST, as GTK+ 2.0 does.  In a couple places
the get_type() functions were returning guint, so I changed these to
GType or GtkType, as appropriate.

Is this okay to commit?

-- 
Cody Russell, bratsche gnome org
http://www.gnome.org/~bratsche/
? libbonoboui-gettype-bratsche.patch
Index: bonobo/bonobo-canvas-component.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-canvas-component.h,v
retrieving revision 1.17
diff -u -r1.17 bonobo-canvas-component.h
--- bonobo/bonobo-canvas-component.h	2001/06/28 13:49:21	1.17
+++ bonobo/bonobo-canvas-component.h	2001/08/04 00:26:17
@@ -43,7 +43,7 @@
 			    GdkEvent              *event);
 } BonoboCanvasComponentClass;
 
-GType                   bonobo_canvas_component_get_type         (void);
+GType                   bonobo_canvas_component_get_type         (void) G_GNUC_CONST;
 BonoboCanvasComponent  *bonobo_canvas_component_construct        (BonoboCanvasComponent       *comp,
 								  GnomeCanvasItem             *item);
 BonoboCanvasComponent  *bonobo_canvas_component_new              (GnomeCanvasItem             *item);
Index: bonobo/bonobo-canvas-item.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-canvas-item.h,v
retrieving revision 1.12
diff -u -r1.12 bonobo-canvas-item.h
--- bonobo/bonobo-canvas-item.h	2001/07/22 23:23:43	1.12
+++ bonobo/bonobo-canvas-item.h	2001/08/04 00:26:17
@@ -28,7 +28,7 @@
 	GnomeCanvasItemClass parent_class;
 } BonoboCanvasItemClass;
 
-GtkType          bonobo_canvas_item_get_type    (void);
+GtkType          bonobo_canvas_item_get_type    (void) G_GNUC_CONST;
 
 void		 bonobo_canvas_item_set_bounds (BonoboCanvasItem *item, double x1, double y1, double x2, double y2);
 
Index: bonobo/bonobo-control-frame.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-control-frame.h,v
retrieving revision 1.30
diff -u -r1.30 bonobo-control-frame.h
--- bonobo/bonobo-control-frame.h	2001/08/01 00:55:48	1.30
+++ bonobo/bonobo-control-frame.h	2001/08/04 00:26:17
@@ -87,7 +87,7 @@
 
 
 /* Object construction stuff */
-GType                         bonobo_control_frame_get_type                  (void);
+GType                         bonobo_control_frame_get_type                  (void) G_GNUC_CONST;
 BonoboControlFrame           *bonobo_control_frame_construct                 (BonoboControlFrame  *control_frame,
 									      Bonobo_UIContainer   ui_container);
 
Index: bonobo/bonobo-control.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-control.h,v
retrieving revision 1.36
diff -u -r1.36 bonobo-control.h
--- bonobo/bonobo-control.h	2001/08/01 00:55:48	1.36
+++ bonobo/bonobo-control.h	2001/08/04 00:26:18
@@ -61,7 +61,7 @@
 								    ...);
 
 /* "Internal" stuff */
-GType                       bonobo_control_get_type                (void);
+GType                       bonobo_control_get_type                (void) G_GNUC_CONST;
 BonoboControl              *bonobo_control_construct               (BonoboControl       *control,
 								    GtkWidget           *widget);
 BonoboUIComponent          *bonobo_control_get_ui_component        (BonoboControl       *control);
Index: bonobo/bonobo-dock-band.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-dock-band.h,v
retrieving revision 1.15
diff -u -r1.15 bonobo-dock-band.h
--- bonobo/bonobo-dock-band.h	2001/04/24 22:09:50	1.15
+++ bonobo/bonobo-dock-band.h	2001/08/04 00:26:18
@@ -100,7 +100,7 @@
 };
 
 GtkWidget     *bonobo_dock_band_new              (void);
-guint          bonobo_dock_band_get_type         (void) G_GNUC_CONST;
+GtkType        bonobo_dock_band_get_type         (void) G_GNUC_CONST;
    
 void           bonobo_dock_band_set_orientation  (BonoboDockBand *band,
                                                  GtkOrientation orientation);
Index: bonobo/bonobo-dock-item.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-dock-item.h,v
retrieving revision 1.23
diff -u -r1.23 bonobo-dock-item.h
--- bonobo/bonobo-dock-item.h	2001/04/24 22:09:50	1.23
+++ bonobo/bonobo-dock-item.h	2001/08/04 00:26:18
@@ -105,7 +105,7 @@
 };
 
 /* Public methods.  */
-guint          bonobo_dock_item_get_type        (void) G_GNUC_CONST;
+GtkType        bonobo_dock_item_get_type        (void) G_GNUC_CONST;
 GtkWidget     *bonobo_dock_item_new             (const gchar *name,
                                                 BonoboDockItemBehavior behavior);
 void           bonobo_dock_item_construct       (BonoboDockItem *new_dock_item,
Index: bonobo/bonobo-dock-layout.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-dock-layout.h,v
retrieving revision 1.14
diff -u -r1.14 bonobo-dock-layout.h
--- bonobo/bonobo-dock-layout.h	2001/04/24 22:09:50	1.14
+++ bonobo/bonobo-dock-layout.h	2001/08/04 00:26:19
@@ -88,7 +88,7 @@
 };
 
 BonoboDockLayout     *bonobo_dock_layout_new      (void);
-guint                bonobo_dock_layout_get_type (void) G_GNUC_CONST;
+GtkType               bonobo_dock_layout_get_type (void) G_GNUC_CONST;
    
 gboolean             bonobo_dock_layout_add_item (BonoboDockLayout *layout,
                                                  BonoboDockItem *item,
Index: bonobo/bonobo-dock.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-dock.h,v
retrieving revision 1.15
diff -u -r1.15 bonobo-dock.h
--- bonobo/bonobo-dock.h	2001/04/24 22:09:51	1.15
+++ bonobo/bonobo-dock.h	2001/08/04 00:26:20
@@ -87,7 +87,7 @@
 };
 
 GtkWidget     *bonobo_dock_new               (void);
-guint          bonobo_dock_get_type          (void) G_GNUC_CONST;
+GtkType        bonobo_dock_get_type          (void) G_GNUC_CONST;
 
 void           bonobo_dock_allow_floating_items
                                             (BonoboDock *dock,
Index: bonobo/bonobo-plug.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-plug.h,v
retrieving revision 1.6
diff -u -r1.6 bonobo-plug.h
--- bonobo/bonobo-plug.h	2001/06/28 13:49:22	1.6
+++ bonobo/bonobo-plug.h	2001/08/04 00:26:20
@@ -44,7 +44,7 @@
 	GtkPlugClass parent_class;
 } BonoboPlugClass;
 
-guint      bonobo_plug_get_type  (void);
+GtkType    bonobo_plug_get_type  (void) G_GNUC_CONST;
 void       bonobo_plug_construct (BonoboPlug *plug, guint32 socket_id);
 GtkWidget* bonobo_plug_new       (guint32 socket_id);
 
Index: bonobo/bonobo-property-control.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-property-control.h,v
retrieving revision 1.6
diff -u -r1.6 bonobo-property-control.h
--- bonobo/bonobo-property-control.h	2001/04/19 17:24:19	1.6
+++ bonobo/bonobo-property-control.h	2001/08/04 00:26:20
@@ -45,7 +45,7 @@
 			 Bonobo_PropertyControl_Action action);
 } BonoboPropertyControlClass;
 
-GtkType bonobo_property_control_get_type (void);
+GtkType bonobo_property_control_get_type (void) G_GNUC_CONST;
 
 BonoboPropertyControl *bonobo_property_control_construct (BonoboPropertyControl *property_control,
 							  BonoboEventSource     *event_source,
Index: bonobo/bonobo-selector-widget.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-selector-widget.h,v
retrieving revision 1.2
diff -u -r1.2 bonobo-selector-widget.h
--- bonobo/bonobo-selector-widget.h	2001/04/19 17:24:19	1.2
+++ bonobo/bonobo-selector-widget.h	2001/08/04 00:26:22
@@ -40,7 +40,7 @@
 	void   (* final_select)    (BonoboSelectorWidget *sel);
 } BonoboSelectorWidgetClass;
 
-GtkType	   bonobo_selector_widget_get_type (void);
+GtkType	   bonobo_selector_widget_get_type (void) G_GNUC_CONST;
 
 GtkWidget *bonobo_selector_widget_new      (void);
 
Index: bonobo/bonobo-selector.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-selector.h,v
retrieving revision 1.19
diff -u -r1.19 bonobo-selector.h
--- bonobo/bonobo-selector.h	2001/04/24 15:13:53	1.19
+++ bonobo/bonobo-selector.h	2001/08/04 00:26:22
@@ -40,7 +40,7 @@
 	void (* cancel)	(BonoboSelector *sel);
 } BonoboSelectorClass;
 
-GtkType	   bonobo_selector_get_type        (void);
+GtkType	   bonobo_selector_get_type        (void) G_GNUC_CONST;
 
 GtkWidget *bonobo_selector_construct       (BonoboSelector       *sel,
 					    const gchar          *title,
Index: bonobo/bonobo-ui-component.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-component.h,v
retrieving revision 1.28
diff -u -r1.28 bonobo-ui-component.h
--- bonobo/bonobo-ui-component.h	2001/07/30 20:36:45	1.28
+++ bonobo/bonobo-ui-component.h	2001/08/04 00:26:22
@@ -93,7 +93,7 @@
 	gpointer            dummy;
 } BonoboUIComponentClass;
 
-GType              bonobo_ui_component_get_type        (void);
+GType              bonobo_ui_component_get_type        (void) G_GNUC_CONST;
 
 BonoboUIComponent *bonobo_ui_component_construct       (BonoboUIComponent  *component,
 							const char         *name);
Index: bonobo/bonobo-ui-config-widget.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-config-widget.h,v
retrieving revision 1.2
diff -u -r1.2 bonobo-ui-config-widget.h
--- bonobo/bonobo-ui-config-widget.h	2001/04/19 17:24:19	1.2
+++ bonobo/bonobo-ui-config-widget.h	2001/08/04 00:26:22
@@ -33,7 +33,7 @@
 	GtkVBoxClass parent_class;
 } BonoboUIConfigWidgetClass;
 
-GtkType	   bonobo_ui_config_widget_get_type  (void);
+GtkType	   bonobo_ui_config_widget_get_type  (void) G_GNUC_CONST;
 
 GtkWidget *bonobo_ui_config_widget_construct (BonoboUIConfigWidget *config,
 					      BonoboUIEngine       *engine,
Index: bonobo/bonobo-ui-container.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-container.h,v
retrieving revision 1.16
diff -u -r1.16 bonobo-ui-container.h
--- bonobo/bonobo-ui-container.h	2001/07/07 16:28:38	1.16
+++ bonobo/bonobo-ui-container.h	2001/08/04 00:26:22
@@ -34,7 +34,7 @@
 	POA_Bonobo_UIContainer__epv epv;
 } BonoboUIContainerClass;
 
-GType                        bonobo_ui_container_get_type            (void);
+GType                        bonobo_ui_container_get_type            (void) G_GNUC_CONST;
 BonoboUIContainer           *bonobo_ui_container_construct           (BonoboUIContainer  *container,
 								      Bonobo_UIContainer  corba_container);
 
Index: bonobo/bonobo-ui-engine-config.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-engine-config.h,v
retrieving revision 1.8
diff -u -r1.8 bonobo-ui-engine-config.h
--- bonobo/bonobo-ui-engine-config.h	2001/07/23 16:41:59	1.8
+++ bonobo/bonobo-ui-engine-config.h	2001/08/04 00:26:22
@@ -36,7 +36,7 @@
 	gpointer       dummy;
 } BonoboUIEngineConfigClass;
 
-GType bonobo_ui_engine_config_get_type  (void);
+GType bonobo_ui_engine_config_get_type  (void) G_GNUC_CONST;
 
 BonoboUIEngineConfig *
         bonobo_ui_engine_config_construct (BonoboUIEngineConfig   *config,
Index: bonobo/bonobo-ui-engine.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-engine.h,v
retrieving revision 1.12
diff -u -r1.12 bonobo-ui-engine.h
--- bonobo/bonobo-ui-engine.h	2001/07/23 20:58:18	1.12
+++ bonobo/bonobo-ui-engine.h	2001/08/04 00:26:22
@@ -61,7 +61,7 @@
 
 } BonoboUIEngineClass;
 
-GtkType         bonobo_ui_engine_get_type      (void);
+GtkType         bonobo_ui_engine_get_type      (void) G_GNUC_CONST;
 BonoboUIEngine *bonobo_ui_engine_construct     (BonoboUIEngine   *engine,
 						GObject          *view);
 BonoboUIEngine *bonobo_ui_engine_new           (GObject          *view);
Index: bonobo/bonobo-ui-sync.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-sync.h,v
retrieving revision 1.7
diff -u -r1.7 bonobo-ui-sync.h
--- bonobo/bonobo-ui-sync.h	2001/07/23 16:42:00	1.7
+++ bonobo/bonobo-ui-sync.h	2001/08/04 00:26:22
@@ -86,7 +86,7 @@
 					  BonoboUINode     *node);
 } BonoboUISyncClass;
 
-GType      bonobo_ui_sync_get_type           (void);
+GType      bonobo_ui_sync_get_type           (void) G_GNUC_CONST;
 BonoboUISync *bonobo_ui_sync_construct       (BonoboUISync     *sync,
 					      BonoboUIEngine   *engine,
 					      gboolean          is_recursive,
Index: bonobo/bonobo-ui-toolbar-button-item.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-toolbar-button-item.h,v
retrieving revision 1.10
diff -u -r1.10 bonobo-ui-toolbar-button-item.h
--- bonobo/bonobo-ui-toolbar-button-item.h	2001/06/28 13:49:22	1.10
+++ bonobo/bonobo-ui-toolbar-button-item.h	2001/08/04 00:26:23
@@ -45,7 +45,7 @@
 	void (* set_want_label) (BonoboUIToolbarButtonItem *toolbar_button_item);
 } BonoboUIToolbarButtonItemClass;
 
-GtkType    bonobo_ui_toolbar_button_item_get_type           (void);
+GtkType    bonobo_ui_toolbar_button_item_get_type           (void) G_GNUC_CONST;
 void       bonobo_ui_toolbar_button_item_construct          (BonoboUIToolbarButtonItem *item,
 							     GtkButton                 *button_widget,
 							     GdkPixbuf                 *icon,
Index: bonobo/bonobo-ui-toolbar-control-item.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-toolbar-control-item.h,v
retrieving revision 1.8
diff -u -r1.8 bonobo-ui-toolbar-control-item.h
--- bonobo/bonobo-ui-toolbar-control-item.h	2001/06/28 13:49:22	1.8
+++ bonobo/bonobo-ui-toolbar-control-item.h	2001/08/04 00:26:23
@@ -40,7 +40,7 @@
 	BonoboUIToolbarButtonItemClass parent_class;
 } BonoboUIToolbarControlItemClass;
 
-GtkType       bonobo_ui_toolbar_control_item_get_type    (void);
+GtkType       bonobo_ui_toolbar_control_item_get_type    (void) G_GNUC_CONST;
 GtkWidget    *bonobo_ui_toolbar_control_item_new         (Bonobo_Control control_ref);
 GtkWidget    *bonobo_ui_toolbar_control_item_construct   (BonoboUIToolbarControlItem *control_item,
 							  Bonobo_Control              control_ref);
Index: bonobo/bonobo-ui-toolbar-item.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-toolbar-item.h,v
retrieving revision 1.19
diff -u -r1.19 bonobo-ui-toolbar-item.h
--- bonobo/bonobo-ui-toolbar-item.h	2001/06/28 13:49:22	1.19
+++ bonobo/bonobo-ui-toolbar-item.h	2001/08/04 00:26:23
@@ -59,7 +59,7 @@
 } BonoboUIToolbarItemClass;
 
 
-GtkType                   bonobo_ui_toolbar_item_get_type         (void);
+GtkType                   bonobo_ui_toolbar_item_get_type         (void) G_GNUC_CONST;
 GtkWidget                *bonobo_ui_toolbar_item_new              (void);
 void                      bonobo_ui_toolbar_item_set_tooltip      (BonoboUIToolbarItem      *item,
 								   GtkTooltips              *tooltips,
Index: bonobo/bonobo-ui-toolbar-popup-item.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-toolbar-popup-item.h,v
retrieving revision 1.9
diff -u -r1.9 bonobo-ui-toolbar-popup-item.h
--- bonobo/bonobo-ui-toolbar-popup-item.h	2001/06/28 13:49:22	1.9
+++ bonobo/bonobo-ui-toolbar-popup-item.h	2001/08/04 00:26:23
@@ -34,7 +34,7 @@
 } BonoboUIToolbarPopupItemClass;
 
 
-GtkType    bonobo_ui_toolbar_popup_item_get_type  (void);
+GtkType    bonobo_ui_toolbar_popup_item_get_type  (void) G_GNUC_CONST;
 GtkWidget *bonobo_ui_toolbar_popup_item_new       (void);
 void       bonobo_ui_toolbar_popup_item_construct (BonoboUIToolbarPopupItem *);
 
Index: bonobo/bonobo-ui-toolbar-separator-item.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-toolbar-separator-item.h,v
retrieving revision 1.8
diff -u -r1.8 bonobo-ui-toolbar-separator-item.h
--- bonobo/bonobo-ui-toolbar-separator-item.h	2001/06/28 13:49:22	1.8
+++ bonobo/bonobo-ui-toolbar-separator-item.h	2001/08/04 00:26:23
@@ -36,7 +36,7 @@
 } BonoboUIToolbarSeparatorItemClass;
 
 
-GtkType    bonobo_ui_toolbar_separator_item_get_type (void);
+GtkType    bonobo_ui_toolbar_separator_item_get_type (void) G_GNUC_CONST;
 GtkWidget *bonobo_ui_toolbar_separator_item_new      (void);
 
 G_END_DECLS
Index: bonobo/bonobo-ui-toolbar-toggle-button-item.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-toolbar-toggle-button-item.h,v
retrieving revision 1.8
diff -u -r1.8 bonobo-ui-toolbar-toggle-button-item.h
--- bonobo/bonobo-ui-toolbar-toggle-button-item.h	2001/06/28 13:49:22	1.8
+++ bonobo/bonobo-ui-toolbar-toggle-button-item.h	2001/08/04 00:26:23
@@ -36,7 +36,7 @@
 } BonoboUIToolbarToggleButtonItemClass;
 
 
-GtkType    bonobo_ui_toolbar_toggle_button_item_get_type   (void);
+GtkType    bonobo_ui_toolbar_toggle_button_item_get_type   (void) G_GNUC_CONST;
 void       bonobo_ui_toolbar_toggle_button_item_construct  (BonoboUIToolbarToggleButtonItem *toggle_button_item,
 							 GdkPixbuf                     *icon,
 							 const char                    *label);
Index: bonobo/bonobo-ui-toolbar.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-toolbar.h,v
retrieving revision 1.19
diff -u -r1.19 bonobo-ui-toolbar.h
--- bonobo/bonobo-ui-toolbar.h	2001/06/28 13:49:22	1.19
+++ bonobo/bonobo-ui-toolbar.h	2001/08/04 00:26:24
@@ -48,7 +48,7 @@
 } BonoboUIToolbarClass;
 
 
-GtkType               bonobo_ui_toolbar_get_type         (void);
+GtkType               bonobo_ui_toolbar_get_type         (void) G_GNUC_CONST;
 void                  bonobo_ui_toolbar_construct        (BonoboUIToolbar      *toolbar);
 GtkWidget            *bonobo_ui_toolbar_new              (void);
 
Index: bonobo/bonobo-ui-xml.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-xml.h,v
retrieving revision 1.23
diff -u -r1.23 bonobo-ui-xml.h
--- bonobo/bonobo-ui-xml.h	2001/07/18 22:15:55	1.23
+++ bonobo/bonobo-ui-xml.h	2001/08/04 00:26:24
@@ -72,7 +72,7 @@
 	gpointer               dummy;
 } BonoboUIXmlClass;
 
-GtkType          bonobo_ui_xml_get_type          (void);
+GtkType          bonobo_ui_xml_get_type          (void) G_GNUC_CONST;
 
 BonoboUIXml     *bonobo_ui_xml_new               (BonoboUIXmlCompareFn  compare,
 						  BonoboUIXmlDataNewFn  data_new,
Index: bonobo/bonobo-widget.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-widget.h,v
retrieving revision 1.20
diff -u -r1.20 bonobo-widget.h
--- bonobo/bonobo-widget.h	2001/07/22 23:23:44	1.20
+++ bonobo/bonobo-widget.h	2001/08/04 00:26:24
@@ -42,7 +42,7 @@
 	GtkBinClass	 bin_class;
 } BonoboWidgetClass;
 
-GtkType             bonobo_widget_get_type                 (void);
+GtkType             bonobo_widget_get_type                 (void) G_GNUC_CONST;
 Bonobo_Unknown      bonobo_widget_get_objref               (BonoboWidget      *bw);
 
 /*
Index: bonobo/bonobo-window.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-window.h,v
retrieving revision 1.30
diff -u -r1.30 bonobo-window.h
--- bonobo/bonobo-window.h	2001/07/07 16:28:38	1.30
+++ bonobo/bonobo-window.h	2001/08/04 00:26:24
@@ -34,7 +34,7 @@
 	GtkWindowClass    parent_class;
 } BonoboWindowClass;
 
-GtkType              bonobo_window_get_type                       (void);
+GtkType              bonobo_window_get_type                       (void) G_GNUC_CONST;
 
 GtkWidget           *bonobo_window_construct                      (BonoboWindow      *win,
 								   BonoboUIContainer *ui_container,
Index: bonobo/bonobo-wrapper.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-wrapper.h,v
retrieving revision 1.10
diff -u -r1.10 bonobo-wrapper.h
--- bonobo/bonobo-wrapper.h	2001/06/28 13:49:22	1.10
+++ bonobo/bonobo-wrapper.h	2001/08/04 00:26:24
@@ -37,7 +37,7 @@
 } BonoboWrapperClass;
 
 
-GtkType		 bonobo_wrapper_get_type		(void);
+GtkType		 bonobo_wrapper_get_type	(void) G_GNUC_CONST;
 GtkWidget	*bonobo_wrapper_new		(void);
 
 void		 bonobo_wrapper_set_covered	(BonoboWrapper *wrapper, gboolean covered);
Index: bonobo/bonobo-zoomable-frame.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-zoomable-frame.h,v
retrieving revision 1.7
diff -u -r1.7 bonobo-zoomable-frame.h
--- bonobo/bonobo-zoomable-frame.h	2001/04/23 23:50:43	1.7
+++ bonobo/bonobo-zoomable-frame.h	2001/08/04 00:26:25
@@ -55,7 +55,7 @@
 	void (*zoom_parameters_changed)	(BonoboZoomableFrame *zframe);
 } BonoboZoomableFrameClass;
 
-GType			 bonobo_zoomable_frame_get_type			(void);
+GType			 bonobo_zoomable_frame_get_type			(void) G_GNUC_CONST;
 
 BonoboZoomableFrame	*bonobo_zoomable_frame_new			(void);
 
Index: bonobo/bonobo-zoomable.h
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-zoomable.h,v
retrieving revision 1.11
diff -u -r1.11 bonobo-zoomable.h
--- bonobo/bonobo-zoomable.h	2001/04/23 23:50:43	1.11
+++ bonobo/bonobo-zoomable.h	2001/08/04 00:26:25
@@ -60,7 +60,7 @@
 	void (*zoom_to_default)	(BonoboZoomable *zoomable);
 } BonoboZoomableClass;
 
-GType		 bonobo_zoomable_get_type (void);
+GType		 bonobo_zoomable_get_type                       (void) G_GNUC_CONST;
 Bonobo_Zoomable	 bonobo_zoomable_corba_object_create		(BonoboObject   *object);
 
 BonoboZoomable	*bonobo_zoomable_new				(void);
? libbonobo-gettype-bratsche.patch
Index: bonobo/bonobo-event-source.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-event-source.h,v
retrieving revision 1.14
diff -u -r1.14 bonobo-event-source.h
--- bonobo/bonobo-event-source.h	2001/07/30 18:45:23	1.14
+++ bonobo/bonobo-event-source.h	2001/08/04 00:39:09
@@ -36,7 +36,7 @@
 	POA_Bonobo_EventSource__epv epv;
 } BonoboEventSourceClass;
 
-GType              bonobo_event_source_get_type         (void);
+GType              bonobo_event_source_get_type         (void) G_GNUC_CONST;
 BonoboEventSource *bonobo_event_source_new              (void);
 void               bonobo_event_source_notify_listeners (BonoboEventSource *event_source,
 							 const char        *event_name,
Index: bonobo/bonobo-generic-factory.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-generic-factory.h,v
retrieving revision 1.32
diff -u -r1.32 bonobo-generic-factory.h
--- bonobo/bonobo-generic-factory.h	2001/08/01 16:19:46	1.32
+++ bonobo/bonobo-generic-factory.h	2001/08/04 00:39:09
@@ -48,7 +48,7 @@
 
 } BonoboGenericFactoryClass;
 
-GType                 bonobo_generic_factory_get_type  (void);
+GType                 bonobo_generic_factory_get_type  (void) G_GNUC_CONST;
 
 BonoboGenericFactory *bonobo_generic_factory_new	 (const char            *oaf_iid,
 							  BonoboFactoryCallback  factory_cb,
Index: bonobo/bonobo-item-container.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-item-container.h,v
retrieving revision 1.27
diff -u -r1.27 bonobo-item-container.h
--- bonobo/bonobo-item-container.h	2001/04/18 22:09:06	1.27
+++ bonobo/bonobo-item-container.h	2001/08/04 00:39:09
@@ -45,7 +45,7 @@
 				      CORBA_Environment   *ev);
 } BonoboItemContainerClass;
 
-GType                bonobo_item_container_get_type       (void);
+GType                bonobo_item_container_get_type       (void) G_GNUC_CONST;
 BonoboItemContainer *bonobo_item_container_new            (void);
 
 void                 bonobo_item_container_add            (BonoboItemContainer *container,
Index: bonobo/bonobo-item-handler.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-item-handler.h,v
retrieving revision 1.10
diff -u -r1.10 bonobo-item-handler.h
--- bonobo/bonobo-item-handler.h	2001/07/30 17:43:19	1.10
+++ bonobo/bonobo-item-handler.h	2001/08/04 00:39:09
@@ -48,7 +48,7 @@
 	POA_Bonobo_ItemContainer__epv epv;
 } BonoboItemHandlerClass;
 
-GType              bonobo_item_handler_get_type    (void);
+GType                bonobo_item_handler_get_type    (void) G_GNUC_CONST;
 BonoboItemHandler   *bonobo_item_handler_new         (BonoboItemHandlerEnumObjectsFn enum_objects,
 						      BonoboItemHandlerGetObjectFn   get_object,
 						      gpointer                       user_data);
Index: bonobo/bonobo-listener.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-listener.h,v
retrieving revision 1.13
diff -u -r1.13 bonobo-listener.h
--- bonobo/bonobo-listener.h	2001/07/30 17:43:19	1.13
+++ bonobo/bonobo-listener.h	2001/08/04 00:39:09
@@ -51,7 +51,7 @@
 					     CORBA_Environment *ev,
 					     gpointer           user_data);
 
-GType           bonobo_listener_get_type    (void);
+GType           bonobo_listener_get_type    (void) G_GNUC_CONST;
 
 BonoboListener *bonobo_listener_new         (BonoboListenerCallbackFn event_cb,
 					     gpointer                 user_data);
Index: bonobo/bonobo-moniker-extender.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-moniker-extender.h,v
retrieving revision 1.9
diff -u -r1.9 bonobo-moniker-extender.h
--- bonobo/bonobo-moniker-extender.h	2001/07/28 14:52:20	1.9
+++ bonobo/bonobo-moniker-extender.h	2001/08/04 00:39:09
@@ -42,7 +42,7 @@
 	BonoboMonikerExtenderFn resolve;
 } BonoboMonikerExtenderClass;
 
-GType                bonobo_moniker_extender_get_type (void);
+GType                  bonobo_moniker_extender_get_type (void) G_GNUC_CONST;
 BonoboMonikerExtender *bonobo_moniker_extender_new      (BonoboMonikerExtenderFn      resolve,
 							 gpointer                     data);
  
Index: bonobo/bonobo-moniker-simple.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-moniker-simple.h,v
retrieving revision 1.8
diff -u -r1.8 bonobo-moniker-simple.h
--- bonobo/bonobo-moniker-simple.h	2001/07/30 17:43:19	1.8
+++ bonobo/bonobo-moniker-simple.h	2001/08/04 00:39:10
@@ -39,7 +39,7 @@
 	BonoboMonikerClass parent_class;
 } BonoboMonikerSimpleClass;
 
-GType          bonobo_moniker_simple_get_type    (void);
+GType          bonobo_moniker_simple_get_type    (void) G_GNUC_CONST;
 
 BonoboMoniker *bonobo_moniker_simple_construct   (BonoboMonikerSimple         *moniker,
 						  const char                  *name,
Index: bonobo/bonobo-moniker.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-moniker.h,v
retrieving revision 1.33
diff -u -r1.33 bonobo-moniker.h
--- bonobo/bonobo-moniker.h	2001/07/30 15:14:25	1.33
+++ bonobo/bonobo-moniker.h	2001/08/04 00:39:10
@@ -61,7 +61,7 @@
 	gpointer        dummy;
 } BonoboMonikerClass;
 
-GType          bonobo_moniker_get_type           (void);
+GType          bonobo_moniker_get_type           (void) G_GNUC_CONST;
 
 BonoboMoniker *bonobo_moniker_construct          (BonoboMoniker     *moniker,
 						  const char        *prefix);
Index: bonobo/bonobo-object.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-object.h,v
retrieving revision 1.68
diff -u -r1.68 bonobo-object.h
--- bonobo/bonobo-object.h	2001/08/01 16:19:46	1.68
+++ bonobo/bonobo-object.h	2001/08/04 00:39:11
@@ -80,7 +80,7 @@
 	POA_Bonobo_Unknown__epv         epv;
 } BonoboObjectClass;
 
-GType                    bonobo_object_get_type               (void);
+GType                    bonobo_object_get_type               (void) G_GNUC_CONST;
 void                     bonobo_object_add_interface          (BonoboObject           *object,
 							       BonoboObject           *newobj);
 BonoboObject            *bonobo_object_query_local_interface  (BonoboObject           *object,
Index: bonobo/bonobo-persist-file.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-persist-file.h,v
retrieving revision 1.21
diff -u -r1.21 bonobo-persist-file.h
--- bonobo/bonobo-persist-file.h	2001/07/21 14:27:40	1.21
+++ bonobo/bonobo-persist-file.h	2001/08/04 00:39:11
@@ -64,7 +64,7 @@
 
 } BonoboPersistFileClass;
 
-GType             bonobo_persist_file_get_type  (void);
+GType             bonobo_persist_file_get_type  (void) G_GNUC_CONST;
 
 BonoboPersistFile *bonobo_persist_file_new       (BonoboPersistFileIOFn load_fn,
 						  BonoboPersistFileIOFn save_fn,
Index: bonobo/bonobo-persist-stream.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-persist-stream.h,v
retrieving revision 1.25
diff -u -r1.25 bonobo-persist-stream.h
--- bonobo/bonobo-persist-stream.h	2001/07/21 14:27:40	1.25
+++ bonobo/bonobo-persist-stream.h	2001/08/04 00:39:12
@@ -72,7 +72,7 @@
 
 } BonoboPersistStreamClass;
 
-GType                bonobo_persist_stream_get_type  (void);
+GType                bonobo_persist_stream_get_type  (void) G_GNUC_CONST;
 
 BonoboPersistStream *bonobo_persist_stream_new       (BonoboPersistStreamIOFn    load_fn,
 						      BonoboPersistStreamIOFn    save_fn,
Index: bonobo/bonobo-persist.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-persist.h,v
retrieving revision 1.24
diff -u -r1.24 bonobo-persist.h
--- bonobo/bonobo-persist.h	2001/07/21 14:27:40	1.24
+++ bonobo/bonobo-persist.h	2001/08/04 00:39:12
@@ -38,7 +38,7 @@
 						    CORBA_Environment *ev);
 } BonoboPersistClass;
 
-GType                           bonobo_persist_get_type (void);
+GType                           bonobo_persist_get_type (void) G_GNUC_CONST;
 
 Bonobo_Persist_ContentTypeList *bonobo_persist_generate_content_types (int num,
 								       ...);
Index: bonobo/bonobo-property-bag.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-property-bag.h,v
retrieving revision 1.32
diff -u -r1.32 bonobo-property-bag.h
--- bonobo/bonobo-property-bag.h	2001/07/30 19:02:05	1.32
+++ bonobo/bonobo-property-bag.h	2001/08/04 00:39:12
@@ -72,7 +72,7 @@
 #define BONOBO_IS_PROPERTY_BAG_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), BONOBO_PROPERTY_BAG_TYPE))
 
 GType		          
-bonobo_property_bag_get_type  (void);
+bonobo_property_bag_get_type  (void) G_GNUC_CONST;
 
 BonoboPropertyBag *
 bonobo_property_bag_new	           (BonoboPropertyGetFn get_prop_cb,
Index: bonobo/bonobo-running-context.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-running-context.h,v
retrieving revision 1.11
diff -u -r1.11 bonobo-running-context.h
--- bonobo/bonobo-running-context.h	2001/04/18 22:09:07	1.11
+++ bonobo/bonobo-running-context.h	2001/08/04 00:39:12
@@ -30,7 +30,7 @@
 	void (*last_unref) (void);
 } BonoboRunningContextClass;
 
-GType         bonobo_running_context_get_type        (void);
+GType         bonobo_running_context_get_type        (void) G_GNUC_CONST;
 
 BonoboObject *bonobo_running_context_new             (void);
 
Index: bonobo/bonobo-shlib-factory.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-shlib-factory.h,v
retrieving revision 1.12
diff -u -r1.12 bonobo-shlib-factory.h
--- bonobo/bonobo-shlib-factory.h	2001/08/01 16:19:46	1.12
+++ bonobo/bonobo-shlib-factory.h	2001/08/04 00:39:12
@@ -37,7 +37,7 @@
 	BonoboGenericFactoryClass parent_class;
 } BonoboShlibFactoryClass;
 
-GType               bonobo_shlib_factory_get_type     (void);
+GType               bonobo_shlib_factory_get_type     (void) G_GNUC_CONST;
 
 BonoboShlibFactory *bonobo_shlib_factory_construct    (BonoboShlibFactory    *factory,
 						       const char            *component_id,
Index: bonobo/bonobo-storage-memory.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-storage-memory.h,v
retrieving revision 1.2
diff -u -r1.2 bonobo-storage-memory.h
--- bonobo/bonobo-storage-memory.h	2001/07/26 19:34:47	1.2
+++ bonobo/bonobo-storage-memory.h	2001/08/04 00:39:13
@@ -80,7 +80,7 @@
 
 } BonoboStorageMemClass;
 
-GType             bonobo_storage_mem_get_type   (void);
+GType             bonobo_storage_mem_get_type   (void) G_GNUC_CONST;
 BonoboObject     *bonobo_storage_mem_create     (void);
 
 G_END_DECLS
Index: bonobo/bonobo-stream-memory.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-stream-memory.h,v
retrieving revision 1.17
diff -u -r1.17 bonobo-stream-memory.h
--- bonobo/bonobo-stream-memory.h	2001/07/24 23:00:06	1.17
+++ bonobo/bonobo-stream-memory.h	2001/08/04 00:39:13
@@ -47,7 +47,7 @@
 	size_t          (*get_size)   (BonoboStreamMem *stream_mem);
 } BonoboStreamMemClass;
 
-GType            bonobo_stream_mem_get_type   (void);
+GType            bonobo_stream_mem_get_type   (void) G_GNUC_CONST;
 BonoboStreamMem *bonobo_stream_mem_construct  (BonoboStreamMem  *stream_mem,
 					       const char       *buffer,
 					       size_t            size,
Index: bonobo/bonobo-transient.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-transient.h,v
retrieving revision 1.10
diff -u -r1.10 bonobo-transient.h
--- bonobo/bonobo-transient.h	2001/04/18 22:09:07	1.10
+++ bonobo/bonobo-transient.h	2001/08/04 00:39:13
@@ -66,7 +66,7 @@
 				const char        *name,
 				CORBA_Environment *ev);
 
-GType bonobo_transient_get_type (void);
+GType bonobo_transient_get_type (void) G_GNUC_CONST;
 
 G_END_DECLS
 
Index: bonobo/bonobo-types.h
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-types.h,v
retrieving revision 1.4
diff -u -r1.4 bonobo-types.h
--- bonobo/bonobo-types.h	2001/07/30 17:43:19	1.4
+++ bonobo/bonobo-types.h	2001/08/04 00:39:13
@@ -20,12 +20,12 @@
 
 GType bonobo_corba_object_type_register_static      (const gchar           *name,
                                                      const CORBA_TypeCode   tc,
-						     gboolean               is_bonobo_unknown);
+						     gboolean               is_bonobo_unknown) G_GNUC_CONST;
 
-GType bonobo_unknown_get_type                       (void);
-GType bonobo_corba_any_get_type                     (void);
-GType bonobo_corba_object_get_type                  (void);
-GType bonobo_corba_exception_get_type               (void);
+GType bonobo_unknown_get_type                       (void) G_GNUC_CONST;
+GType bonobo_corba_any_get_type                     (void) G_GNUC_CONST;
+GType bonobo_corba_object_get_type                  (void) G_GNUC_CONST;
+GType bonobo_corba_exception_get_type               (void) G_GNUC_CONST;
 
 #define BONOBO_TYPE_UNKNOWN                         (bonobo_unknown_get_type ())
 #define BONOBO_TYPE_CORBA_ANY                       (bonobo_corba_any_get_type ())


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]