summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--ChangeLog.pre-2-03
-rw-r--r--ChangeLog.pre-2-103
-rw-r--r--ChangeLog.pre-2-23
-rw-r--r--ChangeLog.pre-2-43
-rw-r--r--ChangeLog.pre-2-63
-rw-r--r--ChangeLog.pre-2-83
-rw-r--r--gdk-pixbuf/gdk-pixbuf-loader.h2
-rw-r--r--gdk-pixbuf/gdk-pixbuf.h4
-rw-r--r--gdk-pixbuf/gnome-canvas-pixbuf.h2
-rw-r--r--gdk/gdk.h12
-rw-r--r--gdk/gdkcolor.h2
-rw-r--r--gdk/gdkdnd.h2
-rw-r--r--gdk/gdkgc.h2
-rw-r--r--gdk/gdkimage.h2
-rw-r--r--gdk/gdkinternals.h4
-rw-r--r--gdk/gdkpixmap.h2
-rw-r--r--gdk/gdkproperty.h2
-rw-r--r--gdk/gdkrgb.h2
-rw-r--r--gdk/gdkwindow.h2
-rw-r--r--gdk/linux-fb/gdkprivate-fb.h11
-rw-r--r--gtk/gdk-pixbuf-loader.h2
-rw-r--r--gtk/gtkaccelgroup.h2
-rw-r--r--gtk/gtkaccellabel.h2
-rw-r--r--gtk/gtkadjustment.h2
-rw-r--r--gtk/gtkalignment.h2
-rw-r--r--gtk/gtkarrow.h2
-rw-r--r--gtk/gtkaspectframe.h2
-rw-r--r--gtk/gtkbbox.h2
-rw-r--r--gtk/gtkbin.h2
-rw-r--r--gtk/gtkbox.h2
-rw-r--r--gtk/gtkbutton.h2
-rw-r--r--gtk/gtkcalendar.h2
-rw-r--r--gtk/gtkcheckbutton.h2
-rw-r--r--gtk/gtkcheckmenuitem.h2
-rw-r--r--gtk/gtkclist.h2
-rw-r--r--gtk/gtkcolorsel.h2
-rw-r--r--gtk/gtkcolorseldialog.h2
-rw-r--r--gtk/gtkcombo.h2
-rw-r--r--gtk/gtkcontainer.h2
-rw-r--r--gtk/gtkctree.h2
-rw-r--r--gtk/gtkcurve.h2
-rw-r--r--gtk/gtkdata.h2
-rw-r--r--gtk/gtkdialog.h2
-rw-r--r--gtk/gtkdrawingarea.h2
-rw-r--r--gtk/gtkeditable.h2
-rw-r--r--gtk/gtkentry.h2
-rw-r--r--gtk/gtkeventbox.h2
-rw-r--r--gtk/gtkfilesel.h2
-rw-r--r--gtk/gtkfixed.h2
-rw-r--r--gtk/gtkfontsel.h4
-rw-r--r--gtk/gtkframe.h2
-rw-r--r--gtk/gtkgamma.h2
-rw-r--r--gtk/gtkhandlebox.h2
-rw-r--r--gtk/gtkhbbox.h2
-rw-r--r--gtk/gtkhbox.h2
-rw-r--r--gtk/gtkhpaned.h2
-rw-r--r--gtk/gtkhruler.h2
-rw-r--r--gtk/gtkhscale.h2
-rw-r--r--gtk/gtkhscrollbar.h2
-rw-r--r--gtk/gtkhseparator.h2
-rw-r--r--gtk/gtkhsv.h2
-rw-r--r--gtk/gtkimage.h2
-rw-r--r--gtk/gtkimcontext.h2
-rw-r--r--gtk/gtkimcontextsimple.h2
-rw-r--r--gtk/gtkimmulticontext.h2
-rw-r--r--gtk/gtkinputdialog.h2
-rw-r--r--gtk/gtkinvisible.h2
-rw-r--r--gtk/gtkitem.h2
-rw-r--r--gtk/gtkitemfactory.h2
-rw-r--r--gtk/gtklabel.h2
-rw-r--r--gtk/gtklayout.h2
-rw-r--r--gtk/gtklist.h2
-rw-r--r--gtk/gtklistitem.h2
-rw-r--r--gtk/gtkmain.h4
-rw-r--r--gtk/gtkmenu.h2
-rw-r--r--gtk/gtkmenubar.h2
-rw-r--r--gtk/gtkmenuitem.h2
-rw-r--r--gtk/gtkmenushell.h2
-rw-r--r--gtk/gtkmisc.h2
-rw-r--r--gtk/gtknotebook.h2
-rw-r--r--gtk/gtkobject.h2
-rw-r--r--gtk/gtkoptionmenu.h2
-rw-r--r--gtk/gtkpacker.h2
-rw-r--r--gtk/gtkpaned.h2
-rw-r--r--gtk/gtkpixmap.h2
-rw-r--r--gtk/gtkplug.h2
-rw-r--r--gtk/gtkpreview.h2
-rw-r--r--gtk/gtkprogress.h2
-rw-r--r--gtk/gtkprogressbar.h2
-rw-r--r--gtk/gtkradiobutton.h2
-rw-r--r--gtk/gtkradiomenuitem.h2
-rw-r--r--gtk/gtkrange.h2
-rw-r--r--gtk/gtkrc.h2
-rw-r--r--gtk/gtkruler.h2
-rw-r--r--gtk/gtkscale.h2
-rw-r--r--gtk/gtkscrollbar.h2
-rw-r--r--gtk/gtkscrolledwindow.h2
-rw-r--r--gtk/gtkseparator.h2
-rw-r--r--gtk/gtksignal.h2
-rw-r--r--gtk/gtksocket.h2
-rw-r--r--gtk/gtkspinbutton.h2
-rw-r--r--gtk/gtkstatusbar.h2
-rw-r--r--gtk/gtkstyle.h2
-rw-r--r--gtk/gtktable.h2
-rw-r--r--gtk/gtktearoffmenuitem.h2
-rw-r--r--gtk/gtktext.h2
-rw-r--r--gtk/gtktextbuffer.h2
-rw-r--r--gtk/gtktextlayout.h2
-rw-r--r--gtk/gtktexttag.h2
-rw-r--r--gtk/gtktexttagtable.h2
-rw-r--r--gtk/gtktextview.h2
-rw-r--r--gtk/gtktipsquery.h2
-rw-r--r--gtk/gtktogglebutton.h2
-rw-r--r--gtk/gtktoolbar.h2
-rw-r--r--gtk/gtktooltips.h2
-rw-r--r--gtk/gtktree.h2
-rw-r--r--gtk/gtktreeitem.h2
-rw-r--r--gtk/gtktypeutils.h2
-rw-r--r--gtk/gtkvbbox.h2
-rw-r--r--gtk/gtkvbox.h2
-rw-r--r--gtk/gtkviewport.h2
-rw-r--r--gtk/gtkvpaned.h2
-rw-r--r--gtk/gtkvruler.h2
-rw-r--r--gtk/gtkvscale.h2
-rw-r--r--gtk/gtkvscrollbar.h2
-rw-r--r--gtk/gtkvseparator.h2
-rw-r--r--gtk/gtkwidget.h2
-rw-r--r--gtk/gtkwindow.h2
129 files changed, 154 insertions, 138 deletions
diff --git a/ChangeLog b/ChangeLog
index b14392acc4..c50a362921 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index b14392acc4..c50a362921 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,6 @@
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index b14392acc4..c50a362921 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,6 @@
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index b14392acc4..c50a362921 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,6 @@
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index b14392acc4..c50a362921 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,6 @@
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index b14392acc4..c50a362921 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,6 @@
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index b14392acc4..c50a362921 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,6 @@
+2000-08-29 Elliot Lee <sopwith@redhat.com>
+ * */*.h: Use G_GNUC_CONST.
+
2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
diff --git a/gdk-pixbuf/gdk-pixbuf-loader.h b/gdk-pixbuf/gdk-pixbuf-loader.h
index b84f9c5d3f..c3d6d6f95b 100644
--- a/gdk-pixbuf/gdk-pixbuf-loader.h
+++ b/gdk-pixbuf/gdk-pixbuf-loader.h
@@ -70,7 +70,7 @@ struct _GdkPixbufLoaderClass
};
-GtkType gdk_pixbuf_loader_get_type (void);
+GtkType gdk_pixbuf_loader_get_type (void) G_GNUC_CONST;
GdkPixbufLoader * gdk_pixbuf_loader_new (void);
GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type);
gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader,
diff --git a/gdk-pixbuf/gdk-pixbuf.h b/gdk-pixbuf/gdk-pixbuf.h
index e18438f089..a7074fd50a 100644
--- a/gdk-pixbuf/gdk-pixbuf.h
+++ b/gdk-pixbuf/gdk-pixbuf.h
@@ -60,7 +60,7 @@ typedef void (* GdkPixbufDestroyNotify) (guchar *pixels, gpointer data);
-GType gdk_pixbuf_get_type (void);
+GType gdk_pixbuf_get_type (void) G_GNUC_CONST;
/* Reference counting */
@@ -195,7 +195,7 @@ typedef enum {
GDK_PIXBUF_FRAME_REVERT
} GdkPixbufFrameAction;
-GType gdk_pixbuf_animation_get_type (void);
+GType gdk_pixbuf_animation_get_type (void) G_GNUC_CONST;
GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *filename);
diff --git a/gdk-pixbuf/gnome-canvas-pixbuf.h b/gdk-pixbuf/gnome-canvas-pixbuf.h
index d4b2096b59..822f5899f5 100644
--- a/gdk-pixbuf/gnome-canvas-pixbuf.h
+++ b/gdk-pixbuf/gnome-canvas-pixbuf.h
@@ -55,7 +55,7 @@ struct _GnomeCanvasPixbufClass {
};
-GtkType gnome_canvas_pixbuf_get_type (void);
+GtkType gnome_canvas_pixbuf_get_type (void) G_GNUC_CONST;
diff --git a/gdk/gdk.h b/gdk/gdk.h
index 815728651e..08a31740ef 100644
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -141,13 +141,13 @@ guint gdk_keyval_from_name (const gchar *keyval_name);
void gdk_keyval_convert_case (guint symbol,
guint *lower,
guint *upper);
-guint gdk_keyval_to_upper (guint keyval);
-guint gdk_keyval_to_lower (guint keyval);
-gboolean gdk_keyval_is_upper (guint keyval);
-gboolean gdk_keyval_is_lower (guint keyval);
+guint gdk_keyval_to_upper (guint keyval) G_GNUC_CONST;
+guint gdk_keyval_to_lower (guint keyval) G_GNUC_CONST;
+gboolean gdk_keyval_is_upper (guint keyval) G_GNUC_CONST;
+gboolean gdk_keyval_is_lower (guint keyval) G_GNUC_CONST;
-guint32 gdk_keyval_to_unicode (guint keyval);
-guint gdk_unicode_to_keyval (guint32 wc);
+guint32 gdk_keyval_to_unicode (guint keyval) G_GNUC_CONST;
+guint gdk_unicode_to_keyval (guint32 wc) G_GNUC_CONST;
/* Threading
*/
diff --git a/gdk/gdkcolor.h b/gdk/gdkcolor.h
index f7ab3ff5da..1612ecab6a 100644
--- a/gdk/gdkcolor.h
+++ b/gdk/gdkcolor.h
@@ -55,7 +55,7 @@ struct _GdkColormapClass
};
-GType gdk_colormap_get_type (void);
+GType gdk_colormap_get_type (void) G_GNUC_CONST;
GdkColormap* gdk_colormap_new (GdkVisual *visual,
gboolean allocate);
diff --git a/gdk/gdkdnd.h b/gdk/gdkdnd.h
index 803872b9c1..1eefec4302 100644
--- a/gdk/gdkdnd.h
+++ b/gdk/gdkdnd.h
@@ -76,7 +76,7 @@ struct _GdkDragContextClass {
/* Drag and Drop */
-GType gdk_drag_context_get_type (void);
+GType gdk_drag_context_get_type (void) G_GNUC_CONST;
GdkDragContext * gdk_drag_context_new (void);
void gdk_drag_context_ref (GdkDragContext *context);
void gdk_drag_context_unref (GdkDragContext *context);
diff --git a/gdk/gdkgc.h b/gdk/gdkgc.h
index da52954727..b18c7fffb4 100644
--- a/gdk/gdkgc.h
+++ b/gdk/gdkgc.h
@@ -186,7 +186,7 @@ struct _GdkGCClass
};
-GType gdk_gc_get_type (void);
+GType gdk_gc_get_type (void) G_GNUC_CONST;
GdkGC *gdk_gc_new (GdkDrawable *drawable);
GdkGC *gdk_gc_new_with_values (GdkDrawable *drawable,
GdkGCValues *values,
diff --git a/gdk/gdkimage.h b/gdk/gdkimage.h
index 67011eb996..16bf59d609 100644
--- a/gdk/gdkimage.h
+++ b/gdk/gdkimage.h
@@ -56,7 +56,7 @@ struct _GdkImageClass
GObjectClass parent_class;
};
-GType gdk_image_get_type (void);
+GType gdk_image_get_type (void) G_GNUC_CONST;
GdkImage* gdk_image_new_bitmap (GdkVisual *visual,
gpointer data,
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index db9a23e7af..2987f81863 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -190,8 +190,8 @@ void _gdk_windowing_window_destroy (GdkWindow *window,
gboolean foreign_destroy);
/* Implementation types */
-GType _gdk_window_impl_get_type (void);
-GType _gdk_pixmap_impl_get_type (void);
+GType _gdk_window_impl_get_type (void) G_GNUC_CONST;
+GType _gdk_pixmap_impl_get_type (void) G_GNUC_CONST;
/************************************
* Initialization and exit routines *
diff --git a/gdk/gdkpixmap.h b/gdk/gdkpixmap.h
index e5d9b6496f..2d08ac6ca5 100644
--- a/gdk/gdkpixmap.h
+++ b/gdk/gdkpixmap.h
@@ -34,7 +34,7 @@ struct _GdkPixmapObjectClass
};
-GType gdk_pixmap_get_type (void);
+GType gdk_pixmap_get_type (void) G_GNUC_CONST;
/* Pixmaps
*/
diff --git a/gdk/gdkproperty.h b/gdk/gdkproperty.h
index 7bc897ac8f..2bb9770229 100644
--- a/gdk/gdkproperty.h
+++ b/gdk/gdkproperty.h
@@ -16,7 +16,7 @@ typedef enum
GdkAtom gdk_atom_intern (const gchar *atom_name,
gboolean only_if_exists);
-gchar* gdk_atom_name (GdkAtom atom);
+gchar* gdk_atom_name (GdkAtom atom) G_GNUC_CONST;
gboolean gdk_property_get (GdkWindow *window,
GdkAtom property,
diff --git a/gdk/gdkrgb.h b/gdk/gdkrgb.h
index 9460f3e131..4d79bae6cd 100644
--- a/gdk/gdkrgb.h
+++ b/gdk/gdkrgb.h
@@ -45,7 +45,7 @@ struct _GdkRgbCmap {
void gdk_rgb_init (void);
-gulong gdk_rgb_xpixel_from_rgb (guint32 rgb);
+gulong gdk_rgb_xpixel_from_rgb (guint32 rgb) G_GNUC_CONST;
void gdk_rgb_gc_set_foreground (GdkGC *gc,
guint32 rgb);
void gdk_rgb_gc_set_background (GdkGC *gc,
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index 65d916b9ee..01cf756c0a 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -196,7 +196,7 @@ struct _GdkWindowObjectClass
/* Windows
*/
-GType gdk_window_object_get_type (void);
+GType gdk_window_object_get_type (void) G_GNUC_CONST;
GdkWindow* gdk_window_new (GdkWindow *parent,
GdkWindowAttr *attributes,
gint attributes_mask);
diff --git a/gdk/linux-fb/gdkprivate-fb.h b/gdk/linux-fb/gdkprivate-fb.h
index db86713008..2f1a122ef2 100644
--- a/gdk/linux-fb/gdkprivate-fb.h
+++ b/gdk/linux-fb/gdkprivate-fb.h
@@ -93,7 +93,7 @@ typedef struct {
GdkDrawableFBClass klass;
} GdkPixmapFBClass;
-GType gdk_drawable_impl_fb_get_type (void);
+GType gdk_drawable_impl_fb_get_type (void) G_GNUC_CONST;
typedef struct {
gulong length;
@@ -185,12 +185,7 @@ typedef struct {
GdkGCClass parent_class;
} GdkGCFBClass;
-GType gdk_gc_fb_get_type (void);
-#if 0
-GdkGC * _gdk_fb_gc_new (GdkDrawable *drawable,
- GdkGCValues *values,
- GdkGCValuesMask values_mask);
-#endif
+GType gdk_gc_fb_get_type (void) G_GNUC_CONST;
/* Routines from gdkgeometry-fb.c */
@@ -319,7 +314,7 @@ typedef struct {
int hbearing;
} PangoFBGlyphInfo;
-GType pango_fb_font_get_type (void);
+GType pango_fb_font_get_type (void) G_GNUC_CONST;
gboolean pango_fb_has_glyph(PangoFont *font, PangoGlyph glyph);
PangoGlyph pango_fb_get_unknown_glyph(PangoFont *font);
PangoFBGlyphInfo *pango_fb_font_get_glyph_info(PangoFont *font, PangoGlyph glyph);
diff --git a/gtk/gdk-pixbuf-loader.h b/gtk/gdk-pixbuf-loader.h
index b84f9c5d3f..c3d6d6f95b 100644
--- a/gtk/gdk-pixbuf-loader.h
+++ b/gtk/gdk-pixbuf-loader.h
@@ -70,7 +70,7 @@ struct _GdkPixbufLoaderClass
};
-GtkType gdk_pixbuf_loader_get_type (void);
+GtkType gdk_pixbuf_loader_get_type (void) G_GNUC_CONST;
GdkPixbufLoader * gdk_pixbuf_loader_new (void);
GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type);
gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader,
diff --git a/gtk/gtkaccelgroup.h b/gtk/gtkaccelgroup.h
index 4e86d165ad..2f6e805291 100644
--- a/gtk/gtkaccelgroup.h
+++ b/gtk/gtkaccelgroup.h
@@ -86,7 +86,7 @@ struct _GtkAccelEntry
/* Accelerators
*/
gboolean gtk_accelerator_valid (guint keyval,
- GdkModifierType modifiers);
+ GdkModifierType modifiers) G_GNUC_CONST;
void gtk_accelerator_parse (const gchar *accelerator,
guint *accelerator_key,
GdkModifierType *accelerator_mods);
diff --git a/gtk/gtkaccellabel.h b/gtk/gtkaccellabel.h
index 85c5c54c93..61973fef0b 100644
--- a/gtk/gtkaccellabel.h
+++ b/gtk/gtkaccellabel.h
@@ -76,7 +76,7 @@ struct _GtkAccelLabelClass
};
-GtkType gtk_accel_label_get_type (void);
+GtkType gtk_accel_label_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_accel_label_new (const gchar *string);
guint gtk_accel_label_get_accel_width (GtkAccelLabel *accel_label);
void gtk_accel_label_set_accel_widget (GtkAccelLabel *accel_label,
diff --git a/gtk/gtkadjustment.h b/gtk/gtkadjustment.h
index 84a31074de..01df904176 100644
--- a/gtk/gtkadjustment.h
+++ b/gtk/gtkadjustment.h
@@ -69,7 +69,7 @@ struct _GtkAdjustmentClass
};
-GtkType gtk_adjustment_get_type (void);
+GtkType gtk_adjustment_get_type (void) G_GNUC_CONST;
GtkObject* gtk_adjustment_new (gfloat value,
gfloat lower,
gfloat upper,
diff --git a/gtk/gtkalignment.h b/gtk/gtkalignment.h
index 5f2a853092..3c3fba77b4 100644
--- a/gtk/gtkalignment.h
+++ b/gtk/gtkalignment.h
@@ -64,7 +64,7 @@ struct _GtkAlignmentClass
};
-GtkType gtk_alignment_get_type (void);
+GtkType gtk_alignment_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_alignment_new (gfloat xalign,
gfloat yalign,
gfloat xscale,
diff --git a/gtk/gtkarrow.h b/gtk/gtkarrow.h
index de2d3d94a0..35d88dcf77 100644
--- a/gtk/gtkarrow.h
+++ b/gtk/gtkarrow.h
@@ -62,7 +62,7 @@ struct _GtkArrowClass
};
-GtkType gtk_arrow_get_type (void);
+GtkType gtk_arrow_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_arrow_new (GtkArrowType arrow_type,
GtkShadowType shadow_type);
void gtk_arrow_set (GtkArrow *arrow,
diff --git a/gtk/gtkaspectframe.h b/gtk/gtkaspectframe.h
index 4a76e42acc..1df1293d30 100644
--- a/gtk/gtkaspectframe.h
+++ b/gtk/gtkaspectframe.h
@@ -66,7 +66,7 @@ struct _GtkAspectFrameClass
};
-GtkType gtk_aspect_frame_get_type (void);
+GtkType gtk_aspect_frame_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_aspect_frame_new (const gchar *label,
gfloat xalign,
gfloat yalign,
diff --git a/gtk/gtkbbox.h b/gtk/gtkbbox.h
index 7992ec1f3d..ac2fd9f6a5 100644
--- a/gtk/gtkbbox.h
+++ b/gtk/gtkbbox.h
@@ -65,7 +65,7 @@ struct _GtkButtonBoxClass
};
-GtkType gtk_button_box_get_type (void);
+GtkType gtk_button_box_get_type (void) G_GNUC_CONST;
void gtk_button_box_get_child_size_default (gint *min_width, gint *min_height);
void gtk_button_box_get_child_ipadding_default (gint *ipad_x, gint *ipad_y);
diff --git a/gtk/gtkbin.h b/gtk/gtkbin.h
index bdb323a4a6..4d24c086d2 100644
--- a/gtk/gtkbin.h
+++ b/gtk/gtkbin.h
@@ -61,7 +61,7 @@ struct _GtkBinClass
};
-GtkType gtk_bin_get_type (void);
+GtkType gtk_bin_get_type (void) G_GNUC_CONST;
#ifdef __cplusplus
diff --git a/gtk/gtkbox.h b/gtk/gtkbox.h
index 9962a78c95..f079fb8fde 100644
--- a/gtk/gtkbox.h
+++ b/gtk/gtkbox.h
@@ -73,7 +73,7 @@ struct _GtkBoxChild
};
-GtkType gtk_box_get_type (void);
+GtkType gtk_box_get_type (void) G_GNUC_CONST;
void gtk_box_pack_start (GtkBox *box,
GtkWidget *child,
gboolean expand,
diff --git a/gtk/gtkbutton.h b/gtk/gtkbutton.h
index 6cbf868cbc..a55460e03c 100644
--- a/gtk/gtkbutton.h
+++ b/gtk/gtkbutton.h
@@ -73,7 +73,7 @@ struct _GtkButtonClass
};
-GtkType gtk_button_get_type (void);
+GtkType gtk_button_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_button_new (void);
GtkWidget* gtk_button_new_with_label (const gchar *label);
void gtk_button_pressed (GtkButton *button);
diff --git a/gtk/gtkcalendar.h b/gtk/gtkcalendar.h
index 145625a99a..851903b1e3 100644
--- a/gtk/gtkcalendar.h
+++ b/gtk/gtkcalendar.h
@@ -107,7 +107,7 @@ struct _GtkCalendarClass
};
-GtkType gtk_calendar_get_type (void);
+GtkType gtk_calendar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_calendar_new (void);
gint gtk_calendar_select_month (GtkCalendar *calendar,
diff --git a/gtk/gtkcheckbutton.h b/gtk/gtkcheckbutton.h
index 9389a960d4..4abb4d72e9 100644
--- a/gtk/gtkcheckbutton.h
+++ b/gtk/gtkcheckbutton.h
@@ -65,7 +65,7 @@ struct _GtkCheckButtonClass
};
-GtkType gtk_check_button_get_type (void);
+GtkType gtk_check_button_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_check_button_new (void);
GtkWidget* gtk_check_button_new_with_label (const gchar *label);
diff --git a/gtk/gtkcheckmenuitem.h b/gtk/gtkcheckmenuitem.h
index 47c11794a5..4142fe9030 100644
--- a/gtk/gtkcheckmenuitem.h
+++ b/gtk/gtkcheckmenuitem.h
@@ -66,7 +66,7 @@ struct _GtkCheckMenuItemClass
};
-GtkType gtk_check_menu_item_get_type (void);
+GtkType gtk_check_menu_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_check_menu_item_new (void);
GtkWidget* gtk_check_menu_item_new_with_label (const gchar *label);
void gtk_check_menu_item_set_active (GtkCheckMenuItem *check_menu_item,
diff --git a/gtk/gtkclist.h b/gtk/gtkclist.h
index bb7b0798ec..7bd437c404 100644
--- a/gtk/gtkclist.h
+++ b/gtk/gtkclist.h
@@ -436,7 +436,7 @@ struct _GtkCell
} u;
};
-GtkType gtk_clist_get_type (void);
+GtkType gtk_clist_get_type (void) G_GNUC_CONST;
/* constructors useful for gtk-- wrappers */
void gtk_clist_construct (GtkCList *clist,
diff --git a/gtk/gtkcolorsel.h b/gtk/gtkcolorsel.h
index 9400c54294..2dd8ecdd99 100644
--- a/gtk/gtkcolorsel.h
+++ b/gtk/gtkcolorsel.h
@@ -69,7 +69,7 @@ struct _GtkColorSelectionClass
/* ColorSelection */
-GtkType gtk_color_selection_get_type (void);
+GtkType gtk_color_selection_get_type (void) G_GNUC_CONST;
GtkWidget * gtk_color_selection_new (void);
void gtk_color_selection_set_update_policy (GtkColorSelection *colorsel,
GtkUpdateType policy);
diff --git a/gtk/gtkcolorseldialog.h b/gtk/gtkcolorseldialog.h
index 553f1509ef..a401c2319d 100644
--- a/gtk/gtkcolorseldialog.h
+++ b/gtk/gtkcolorseldialog.h
@@ -63,7 +63,7 @@ struct _GtkColorSelectionDialogClass
/* ColorSelectionDialog */
-GtkType gtk_color_selection_dialog_get_type (void);
+GtkType gtk_color_selection_dialog_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_color_selection_dialog_new (const gchar *title);
diff --git a/gtk/gtkcombo.h b/gtk/gtkcombo.h
index c33f5e7e77..6345464f7d 100644
--- a/gtk/gtkcombo.h
+++ b/gtk/gtkcombo.h
@@ -71,7 +71,7 @@ struct _GtkComboClass {
GtkHBoxClass parent_class;
};
-GtkType gtk_combo_get_type (void);
+GtkType gtk_combo_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_combo_new (void);
/* the text in the entry must be or not be in the list */
diff --git a/gtk/gtkcontainer.h b/gtk/gtkcontainer.h
index ae7bf0ff20..93c29c0428 100644
--- a/gtk/gtkcontainer.h
+++ b/gtk/gtkcontainer.h
@@ -106,7 +106,7 @@ struct _GtkContainerClass
/* Application-level methods */
-GtkType gtk_container_get_type (void);
+GtkType gtk_container_get_type (void) G_GNUC_CONST;
void gtk_container_set_border_width (GtkContainer *container,
guint border_width);
void gtk_container_add (GtkContainer *container,
diff --git a/gtk/gtkctree.h b/gtk/gtkctree.h
index 14733b719b..96ada29975 100644
--- a/gtk/gtkctree.h
+++ b/gtk/gtkctree.h
@@ -170,7 +170,7 @@ struct _GtkCTreeNode {
* Creation, insertion, deletion *
***********************************************************/
-GtkType gtk_ctree_get_type (void);
+GtkType gtk_ctree_get_type (void) G_GNUC_CONST;
void gtk_ctree_construct (GtkCTree *ctree,
gint columns,
gint tree_column,
diff --git a/gtk/gtkcurve.h b/gtk/gtkcurve.h
index 9597731bf1..ba0235156e 100644
--- a/gtk/gtkcurve.h
+++ b/gtk/gtkcurve.h
@@ -80,7 +80,7 @@ struct _GtkCurveClass
};
-GtkType gtk_curve_get_type (void);
+GtkType gtk_curve_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_curve_new (void);
void gtk_curve_reset (GtkCurve *curve);
void gtk_curve_set_gamma (GtkCurve *curve, gfloat gamma);
diff --git a/gtk/gtkdata.h b/gtk/gtkdata.h
index 01026d166f..04a63f6c78 100644
--- a/gtk/gtkdata.h
+++ b/gtk/gtkdata.h
@@ -61,7 +61,7 @@ struct _GtkDataClass
};
-GtkType gtk_data_get_type (void);
+GtkType gtk_data_get_type (void) G_GNUC_CONST;
#ifdef __cplusplus
diff --git a/gtk/gtkdialog.h b/gtk/gtkdialog.h
index 54e66c9a29..cb2340ee08 100644
--- a/gtk/gtkdialog.h
+++ b/gtk/gtkdialog.h
@@ -64,7 +64,7 @@ struct _GtkDialogClass
};
-GtkType gtk_dialog_get_type (void);
+GtkType gtk_dialog_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_dialog_new (void);
diff --git a/gtk/gtkdrawingarea.h b/gtk/gtkdrawingarea.h
index bcf9d52ae7..8ba240f451 100644
--- a/gtk/gtkdrawingarea.h
+++ b/gtk/gtkdrawingarea.h
@@ -61,7 +61,7 @@ struct _GtkDrawingAreaClass
};
-GtkType gtk_drawing_area_get_type (void);
+GtkType gtk_drawing_area_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_drawing_area_new (void);
void gtk_drawing_area_size (GtkDrawingArea *darea,
gint width,
diff --git a/gtk/gtkeditable.h b/gtk/gtkeditable.h
index bafbda8444..55c1c22e9e 100644
--- a/gtk/gtkeditable.h
+++ b/gtk/gtkeditable.h
@@ -128,7 +128,7 @@ struct _GtkEditableClass
gint position);
};
-GtkType gtk_editable_get_type (void);
+GtkType gtk_editable_get_type (void) G_GNUC_CONST;
void gtk_editable_select_region (GtkEditable *editable,
gint start,
gint end);
diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h
index c554fe89ee..9f7f38899e 100644
--- a/gtk/gtkentry.h
+++ b/gtk/gtkentry.h
@@ -79,7 +79,7 @@ struct _GtkEntryClass
GtkEditableClass parent_class;
};
-GtkType gtk_entry_get_type (void);
+GtkType gtk_entry_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_entry_new (void);
GtkWidget* gtk_entry_new_with_max_length (guint16 max);
void gtk_entry_set_text (GtkEntry *entry,
diff --git a/gtk/gtkeventbox.h b/gtk/gtkeventbox.h
index 4047edeb0e..6f4a7b8fcd 100644
--- a/gtk/gtkeventbox.h
+++ b/gtk/gtkeventbox.h
@@ -58,7 +58,7 @@ struct _GtkEventBoxClass
GtkBinClass parent_class;
};
-GtkType gtk_event_box_get_type (void);
+GtkType gtk_event_box_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_event_box_new (void);
#ifdef __cplusplus
diff --git a/gtk/gtkfilesel.h b/gtk/gtkfilesel.h
index 46c749b4bf..9fb4e8fb46 100644
--- a/gtk/gtkfilesel.h
+++ b/gtk/gtkfilesel.h
@@ -83,7 +83,7 @@ struct _GtkFileSelectionClass
};
-GtkType gtk_file_selection_get_type (void);
+GtkType gtk_file_selection_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_file_selection_new (const gchar *title);
void gtk_file_selection_set_filename (GtkFileSelection *filesel,
const gchar *filename);
diff --git a/gtk/gtkfixed.h b/gtk/gtkfixed.h
index fef78a5ab2..95b49d68e5 100644
--- a/gtk/gtkfixed.h
+++ b/gtk/gtkfixed.h
@@ -69,7 +69,7 @@ struct _GtkFixedChild
};
-GtkType gtk_fixed_get_type (void);
+GtkType gtk_fixed_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_fixed_new (void);
void gtk_fixed_put (GtkFixed *fixed,
GtkWidget *widget,
diff --git a/gtk/gtkfontsel.h b/gtk/gtkfontsel.h
index 2b2cc902c3..1cc0c8653b 100644
--- a/gtk/gtkfontsel.h
+++ b/gtk/gtkfontsel.h
@@ -121,7 +121,7 @@ struct _GtkFontSelectionDialogClass
* see the comments in the GtkFontSelectionDialog functions.
*****************************************************************************/
-GtkType gtk_font_selection_get_type (void);
+GtkType gtk_font_selection_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_font_selection_new (void);
gchar* gtk_font_selection_get_font_name (GtkFontSelection *fontsel);
GdkFont* gtk_font_selection_get_font (GtkFontSelection *fontsel);
@@ -139,7 +139,7 @@ void gtk_font_selection_set_preview_text (GtkFontSelection *fontsel,
* GtkFontSelection.
*****************************************************************************/
-GtkType gtk_font_selection_dialog_get_type (void);
+GtkType gtk_font_selection_dialog_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_font_selection_dialog_new (const gchar *title);
/* This returns the X Logical Font Description fontname, or NULL if no font
diff --git a/gtk/gtkframe.h b/gtk/gtkframe.h
index 0e8125f88f..89b97bfc06 100644
--- a/gtk/gtkframe.h
+++ b/gtk/gtkframe.h
@@ -68,7 +68,7 @@ struct _GtkFrameClass
};
-GtkType gtk_frame_get_type (void);
+GtkType gtk_frame_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_frame_new (const gchar *label);
void gtk_frame_set_label (GtkFrame *frame,
const gchar *label);
diff --git a/gtk/gtkgamma.h b/gtk/gtkgamma.h
index 971d0bb04b..4875df82a9 100644
--- a/gtk/gtkgamma.h
+++ b/gtk/gtkgamma.h
@@ -67,7 +67,7 @@ struct _GtkGammaCurveClass
};
-GtkType gtk_gamma_curve_get_type (void);
+GtkType gtk_gamma_curve_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_gamma_curve_new (void);
diff --git a/gtk/gtkhandlebox.h b/gtk/gtkhandlebox.h
index cd749e364a..35fe764b11 100644
--- a/gtk/gtkhandlebox.h
+++ b/gtk/gtkhandlebox.h
@@ -88,7 +88,7 @@ struct _GtkHandleBoxClass
};
-GtkType gtk_handle_box_get_type (void);
+GtkType gtk_handle_box_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_handle_box_new (void);
void gtk_handle_box_set_shadow_type (GtkHandleBox *handle_box,
GtkShadowType type);
diff --git a/gtk/gtkhbbox.h b/gtk/gtkhbbox.h
index 914d3eb9d8..c918b79266 100644
--- a/gtk/gtkhbbox.h
+++ b/gtk/gtkhbbox.h
@@ -58,7 +58,7 @@ struct _GtkHButtonBoxClass
};
-GtkType gtk_hbutton_box_get_type (void);
+GtkType gtk_hbutton_box_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hbutton_box_new (void);
/* buttons can be added by gtk_container_add() */
diff --git a/gtk/gtkhbox.h b/gtk/gtkhbox.h
index 4f27ea2935..ff78b282ad 100644
--- a/gtk/gtkhbox.h
+++ b/gtk/gtkhbox.h
@@ -59,7 +59,7 @@ struct _GtkHBoxClass
};
-GtkType gtk_hbox_get_type (void);
+GtkType gtk_hbox_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hbox_new (gboolean homogeneous,
gint spacing);
diff --git a/gtk/gtkhpaned.h b/gtk/gtkhpaned.h
index 747abf9449..3b6a2d4392 100644
--- a/gtk/gtkhpaned.h
+++ b/gtk/gtkhpaned.h
@@ -54,7 +54,7 @@ struct _GtkHPanedClass
GtkPanedClass parent_class;
};
-GtkType gtk_hpaned_get_type (void);
+GtkType gtk_hpaned_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_hpaned_new (void);
#ifdef __cplusplus
diff --git a/gtk/gtkhruler.h b/gtk/gtkhruler.h
index 900e5fe151..1c482331b6 100644
--- a/gtk/gtkhruler.h
+++ b/gtk/gtkhruler.h
@@ -59,7 +59,7 @@ struct _GtkHRulerClass
};
-GtkType gtk_hruler_get_type (void);
+GtkType gtk_hruler_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hruler_new (void);
diff --git a/gtk/gtkhscale.h b/gtk/gtkhscale.h
index 85af64a8fa..b4a49648e5 100644
--- a/gtk/gtkhscale.h
+++ b/gtk/gtkhscale.h
@@ -59,7 +59,7 @@ struct _GtkHScaleClass
};
-GtkType gtk_hscale_get_type (void);
+GtkType gtk_hscale_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hscale_new (GtkAdjustment *adjustment);
diff --git a/gtk/gtkhscrollbar.h b/gtk/gtkhscrollbar.h
index 3e69928a37..8917a55e5b 100644
--- a/gtk/gtkhscrollbar.h
+++ b/gtk/gtkhscrollbar.h
@@ -59,7 +59,7 @@ struct _GtkHScrollbarClass
};
-GtkType gtk_hscrollbar_get_type (void);
+GtkType gtk_hscrollbar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hscrollbar_new (GtkAdjustment *adjustment);
diff --git a/gtk/gtkhseparator.h b/gtk/gtkhseparator.h
index 5f11906fd1..b98abd2b19 100644
--- a/gtk/gtkhseparator.h
+++ b/gtk/gtkhseparator.h
@@ -59,7 +59,7 @@ struct _GtkHSeparatorClass
};
-GtkType gtk_hseparator_get_type (void);
+GtkType gtk_hseparator_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hseparator_new (void);
diff --git a/gtk/gtkhsv.h b/gtk/gtkhsv.h
index ff39689529..cc0a08d5bb 100644
--- a/gtk/gtkhsv.h
+++ b/gtk/gtkhsv.h
@@ -66,7 +66,7 @@ struct _GtkHSVClass
};
-GtkType gtk_hsv_get_type (void);
+GtkType gtk_hsv_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_hsv_new (void);
void gtk_hsv_set_color (GtkHSV *hsv,
double h,
diff --git a/gtk/gtkimage.h b/gtk/gtkimage.h
index eff7e718a3..147a606463 100644
--- a/gtk/gtkimage.h
+++ b/gtk/gtkimage.h
@@ -62,7 +62,7 @@ struct _GtkImageClass
};
-GtkType gtk_image_get_type (void);
+GtkType gtk_image_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_image_new (GdkImage *val,
GdkBitmap *mask);
void gtk_image_set (GtkImage *image,
diff --git a/gtk/gtkimcontext.h b/gtk/gtkimcontext.h
index b25da5e9f0..efc4ab64fe 100644
--- a/gtk/gtkimcontext.h
+++ b/gtk/gtkimcontext.h
@@ -67,7 +67,7 @@ struct _GtkIMContextClass
void (*focus_out) (GtkIMContext *context);
};
-GtkType gtk_im_context_get_type (void);
+GtkType gtk_im_context_get_type (void) G_GNUC_CONST;
void gtk_im_context_set_client_window (GtkIMContext *context,
GdkWindow *window);
diff --git a/gtk/gtkimcontextsimple.h b/gtk/gtkimcontextsimple.h
index 788fc14007..80e3b2246b 100644
--- a/gtk/gtkimcontextsimple.h
+++ b/gtk/gtkimcontextsimple.h
@@ -52,7 +52,7 @@ struct _GtkIMContextSimpleClass
GtkIMContextClass parent_class;
};
-GtkType gtk_im_context_simple_get_type (void);
+GtkType gtk_im_context_simple_get_type (void) G_GNUC_CONST;
GtkIMContext *gtk_im_context_simple_new (void);
#ifdef __cplusplus
diff --git a/gtk/gtkimmulticontext.h b/gtk/gtkimmulticontext.h
index 94a67d4a54..bed52f01d7 100644
--- a/gtk/gtkimmulticontext.h
+++ b/gtk/gtkimmulticontext.h
@@ -50,7 +50,7 @@ struct _GtkIMMulticontextClass
GtkIMContextClass parent_class;
};
-GtkType gtk_im_multicontext_get_type (void);
+GtkType gtk_im_multicontext_get_type (void) G_GNUC_CONST;
GtkIMContext *gtk_im_multicontext_new (void);
#ifdef __cplusplus
diff --git a/gtk/gtkinputdialog.h b/gtk/gtkinputdialog.h
index 0c77922cf6..e7a7f8131e 100644
--- a/gtk/gtkinputdialog.h
+++ b/gtk/gtkinputdialog.h
@@ -77,7 +77,7 @@ struct _GtkInputDialogClass
};
-GtkType gtk_input_dialog_get_type (void);
+GtkType gtk_input_dialog_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_input_dialog_new (void);
diff --git a/gtk/gtkinvisible.h b/gtk/gtkinvisible.h
index bc65391651..7214ecf553 100644
--- a/gtk/gtkinvisible.h
+++ b/gtk/gtkinvisible.h
@@ -59,7 +59,7 @@ struct _GtkInvisibleClass
GtkWidgetClass parent_class;
};
-GtkType gtk_invisible_get_type (void);
+GtkType gtk_invisible_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_invisible_new (void);
#ifdef __cplusplus
diff --git a/gtk/gtkitem.h b/gtk/gtkitem.h
index 08010c23c0..cd02bda168 100644
--- a/gtk/gtkitem.h
+++ b/gtk/gtkitem.h
@@ -63,7 +63,7 @@ struct _GtkItemClass
};
-GtkType gtk_item_get_type (void);
+GtkType gtk_item_get_type (void) G_GNUC_CONST;
void gtk_item_select (GtkItem *item);
void gtk_item_deselect (GtkItem *item);
void gtk_item_toggle (GtkItem *item);
diff --git a/gtk/gtkitemfactory.h b/gtk/gtkitemfactory.h
index 7a6eb75bab..74252129d0 100644
--- a/gtk/gtkitemfactory.h
+++ b/gtk/gtkitemfactory.h
@@ -125,7 +125,7 @@ struct _GtkItemFactoryItem
};
-GtkType gtk_item_factory_get_type (void);
+GtkType gtk_item_factory_get_type (void) G_GNUC_CONST;
/* `container_type' must be of GTK_TYPE_MENU_BAR, GTK_TYPE_MENU,
* or GTK_TYPE_OPTION_MENU.
diff --git a/gtk/gtklabel.h b/gtk/gtklabel.h
index 414707951e..b71ccae410 100644
--- a/gtk/gtklabel.h
+++ b/gtk/gtklabel.h
@@ -68,7 +68,7 @@ struct _GtkLabelClass
GtkMiscClass parent_class;
};
-GtkType gtk_label_get_type (void);
+GtkType gtk_label_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_label_new (const char *str);
void gtk_label_set_text (GtkLabel *label,
const char *str);
diff --git a/gtk/gtklayout.h b/gtk/gtklayout.h
index b81bb6f266..54aa39e714 100644
--- a/gtk/gtklayout.h
+++ b/gtk/gtklayout.h
@@ -82,7 +82,7 @@ struct _GtkLayoutClass {
GtkAdjustment *vadjustment);
};
-GtkType gtk_layout_get_type (void);
+GtkType gtk_layout_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_layout_new (GtkAdjustment *hadjustment,
GtkAdjustment *vadjustment);
void gtk_layout_put (GtkLayout *layout,
diff --git a/gtk/gtklist.h b/gtk/gtklist.h
index 8d2fab61fc..027930e3a5 100644
--- a/gtk/gtklist.h
+++ b/gtk/gtklist.h
@@ -86,7 +86,7 @@ struct _GtkListClass
};
-GtkType gtk_list_get_type (void);
+GtkType gtk_list_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_list_new (void);
void gtk_list_insert_items (GtkList *list,
GList *items,
diff --git a/gtk/gtklistitem.h b/gtk/gtklistitem.h
index 06520b9c76..0617e6ea73 100644
--- a/gtk/gtklistitem.h
+++ b/gtk/gtklistitem.h
@@ -77,7 +77,7 @@ struct _GtkListItemClass
};
-GtkType gtk_list_item_get_type (void);
+GtkType gtk_list_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_list_item_new (void);
GtkWidget* gtk_list_item_new_with_label (const gchar *label);
void gtk_list_item_select (GtkListItem *list_item);
diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h
index 08c01c74a5..ea9829b6b6 100644
--- a/gtk/gtkmain.h
+++ b/gtk/gtkmain.h
@@ -123,8 +123,8 @@ gint gtk_main_iteration (void);
/* gtk_main_iteration() calls gtk_main_iteration_do(TRUE) */
gint gtk_main_iteration_do (gboolean blocking);
-gint gtk_true (void);
-gint gtk_false (void);
+gint gtk_true (void) G_GNUC_CONST;
+gint gtk_false (void) G_GNUC_CONST;
void gtk_grab_add (GtkWidget *widget);
GtkWidget* gtk_grab_get_current (void);
diff --git a/gtk/gtkmenu.h b/gtk/gtkmenu.h
index 873f86b78c..7f0420daac 100644
--- a/gtk/gtkmenu.h
+++ b/gtk/gtkmenu.h
@@ -84,7 +84,7 @@ struct _GtkMenuClass
};
-GtkType gtk_menu_get_type (void);
+GtkType gtk_menu_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_menu_new (void);
/* Wrappers for the Menu Shell operations */
diff --git a/gtk/gtkmenubar.h b/gtk/gtkmenubar.h
index 0fff17526f..235639de5e 100644
--- a/gtk/gtkmenubar.h
+++ b/gtk/gtkmenubar.h
@@ -61,7 +61,7 @@ struct _GtkMenuBarClass
};
-GtkType gtk_menu_bar_get_type (void);
+GtkType gtk_menu_bar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_menu_bar_new (void);
void gtk_menu_bar_append (GtkMenuBar *menu_bar,
GtkWidget *child);
diff --git a/gtk/gtkmenuitem.h b/gtk/gtkmenuitem.h
index 4c98173fb7..2f59c0c9f2 100644
--- a/gtk/gtkmenuitem.h
+++ b/gtk/gtkmenuitem.h
@@ -84,7 +84,7 @@ struct _GtkMenuItemClass
};
-GtkType gtk_menu_item_get_type (void);
+GtkType gtk_menu_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_menu_item_new (void);
GtkWidget* gtk_menu_item_new_with_label (const gchar *label);
void gtk_menu_item_set_submenu (GtkMenuItem *menu_item,
diff --git a/gtk/gtkmenushell.h b/gtk/gtkmenushell.h
index 9e3fca4108..6470cddf19 100644
--- a/gtk/gtkmenushell.h
+++ b/gtk/gtkmenushell.h
@@ -84,7 +84,7 @@ struct _GtkMenuShellClass
};
-GtkType gtk_menu_shell_get_type (void);
+GtkType gtk_menu_shell_get_type (void) G_GNUC_CONST;
void gtk_menu_shell_append (GtkMenuShell *menu_shell,
GtkWidget *child);
void gtk_menu_shell_prepend (GtkMenuShell *menu_shell,
diff --git a/gtk/gtkmisc.h b/gtk/gtkmisc.h
index 497566f721..379b780c68 100644
--- a/gtk/gtkmisc.h
+++ b/gtk/gtkmisc.h
@@ -65,7 +65,7 @@ struct _GtkMiscClass
};
-GtkType gtk_misc_get_type (void);
+GtkType gtk_misc_get_type (void) G_GNUC_CONST;
void gtk_misc_set_alignment (GtkMisc *misc,
gfloat xalign,
gfloat yalign);
diff --git a/gtk/gtknotebook.h b/gtk/gtknotebook.h
index 50c0e6ed54..ffa575c508 100644
--- a/gtk/gtknotebook.h
+++ b/gtk/gtknotebook.h
@@ -111,7 +111,7 @@ struct _GtkNotebookPage
* Creation, insertion, deletion *
***********************************************************/
-GtkType gtk_notebook_get_type (void);
+GtkType gtk_notebook_get_type (void) G_GNUC_CONST;
GtkWidget * gtk_notebook_new (void);
void gtk_notebook_append_page (GtkNotebook *notebook,
GtkWidget *child,
diff --git a/gtk/gtkobject.h b/gtk/gtkobject.h
index 9661f2b505..3b7947a64a 100644
--- a/gtk/gtkobject.h
+++ b/gtk/gtkobject.h
@@ -165,7 +165,7 @@ struct _GtkObjectClass
/* Application-level methods */
-GtkType gtk_object_get_type (void);
+GtkType gtk_object_get_type (void) G_GNUC_CONST;
/* Append a user defined signal without default handler to a class. */
guint gtk_object_class_user_signal_new (GtkObjectClass *klass,
diff --git a/gtk/gtkoptionmenu.h b/gtk/gtkoptionmenu.h
index 0af80c7f3b..34206a2641 100644
--- a/gtk/gtkoptionmenu.h
+++ b/gtk/gtkoptionmenu.h
@@ -65,7 +65,7 @@ struct _GtkOptionMenuClass
};
-GtkType gtk_option_menu_get_type (void);
+GtkType gtk_option_menu_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_option_menu_new (void);
GtkWidget* gtk_option_menu_get_menu (GtkOptionMenu *option_menu);
void gtk_option_menu_set_menu (GtkOptionMenu *option_menu,
diff --git a/gtk/gtkpacker.h b/gtk/gtkpacker.h
index 30cd738ac6..a483c9da6d 100644
--- a/gtk/gtkpacker.h
+++ b/gtk/gtkpacker.h
@@ -123,7 +123,7 @@ struct _GtkPackerClass
};
-GtkType gtk_packer_get_type (void);
+GtkType gtk_packer_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_packer_new (void);
void gtk_packer_add_defaults (GtkPacker *packer,
GtkWidget *child,
diff --git a/gtk/gtkpaned.h b/gtk/gtkpaned.h
index f99ebe613b..f8bf1280ff 100644
--- a/gtk/gtkpaned.h
+++ b/gtk/gtkpaned.h
@@ -86,7 +86,7 @@ struct _GtkPanedClass
};
-GtkType gtk_paned_get_type (void);
+GtkType gtk_paned_get_type (void) G_GNUC_CONST;
void gtk_paned_add1 (GtkPaned *paned,
GtkWidget *child);
void gtk_paned_add2 (GtkPaned *paned,
diff --git a/gtk/gtkpixmap.h b/gtk/gtkpixmap.h
index 9bfd56fadf..3e386179ba 100644
--- a/gtk/gtkpixmap.h
+++ b/gtk/gtkpixmap.h
@@ -65,7 +65,7 @@ struct _GtkPixmapClass
};
-GtkType gtk_pixmap_get_type (void);
+GtkType gtk_pixmap_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_pixmap_new (GdkPixmap *pixmap,
GdkBitmap *mask);
void gtk_pixmap_set (GtkPixmap *pixmap,
diff --git a/gtk/gtkplug.h b/gtk/gtkplug.h
index bacae0c070..dd779f07d7 100644
--- a/gtk/gtkplug.h
+++ b/gtk/gtkplug.h
@@ -62,7 +62,7 @@ struct _GtkPlugClass
};
-GtkType gtk_plug_get_type (void);
+GtkType gtk_plug_get_type (void) G_GNUC_CONST;
void gtk_plug_construct (GtkPlug *plug, GdkNativeWindow socket_id);
GtkWidget* gtk_plug_new (GdkNativeWindow socket_id);
diff --git a/gtk/gtkpreview.h b/gtk/gtkpreview.h
index 2a147da19a..224ddfce07 100644
--- a/gtk/gtkpreview.h
+++ b/gtk/gtkpreview.h
@@ -91,7 +91,7 @@ struct _GtkPreviewClass
};
-GtkType gtk_preview_get_type (void);
+GtkType gtk_preview_get_type (void) G_GNUC_CONST;
void gtk_preview_uninit (void);
GtkWidget* gtk_preview_new (GtkPreviewType type);
void gtk_preview_size (GtkPreview *preview,
diff --git a/gtk/gtkprogress.h b/gtk/gtkprogress.h
index de24d834c4..0764262c5c 100644
--- a/gtk/gtkprogress.h
+++ b/gtk/gtkprogress.h
@@ -78,7 +78,7 @@ struct _GtkProgressClass
* directly.
*/
-GtkType gtk_progress_get_type (void);
+GtkType gtk_progress_get_type (void) G_GNUC_CONST;
void gtk_progress_set_show_text (GtkProgress *progress,
gint show_text);
void gtk_progress_set_text_alignment (GtkProgress *progress,
diff --git a/gtk/gtkprogressbar.h b/gtk/gtkprogressbar.h
index f6c8586331..60d703e615 100644
--- a/gtk/gtkprogressbar.h
+++ b/gtk/gtkprogressbar.h
@@ -87,7 +87,7 @@ struct _GtkProgressBarClass
};
-GtkType gtk_progress_bar_get_type (void);
+GtkType gtk_progress_bar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_progress_bar_new (void);
/*
diff --git a/gtk/gtkradiobutton.h b/gtk/gtkradiobutton.h
index 88302e70e1..df91ddfe83 100644
--- a/gtk/gtkradiobutton.h
+++ b/gtk/gtkradiobutton.h
@@ -61,7 +61,7 @@ struct _GtkRadioButtonClass
};
-GtkType gtk_radio_button_get_type (void);
+GtkType gtk_radio_button_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_radio_button_new (GSList *group);
GtkWidget* gtk_radio_button_new_from_widget (GtkRadioButton *group);
GtkWidget* gtk_radio_button_new_with_label (GSList *group,
diff --git a/gtk/gtkradiomenuitem.h b/gtk/gtkradiomenuitem.h
index 9b2b28a6a4..b81376cf12 100644
--- a/gtk/gtkradiomenuitem.h
+++ b/gtk/gtkradiomenuitem.h
@@ -61,7 +61,7 @@ struct _GtkRadioMenuItemClass
};
-GtkType gtk_radio_menu_item_get_type (void);
+GtkType gtk_radio_menu_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_radio_menu_item_new (GSList *group);
GtkWidget* gtk_radio_menu_item_new_with_label (GSList *group,
const gchar *label);
diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h
index 88eb5a9cfa..2799904581 100644
--- a/gtk/gtkrange.h
+++ b/gtk/gtkrange.h
@@ -115,7 +115,7 @@ struct _GtkRangeClass
};
-GtkType gtk_range_get_type (void);
+GtkType gtk_range_get_type (void) G_GNUC_CONST;
GtkAdjustment* gtk_range_get_adjustment (GtkRange *range);
void gtk_range_set_update_policy (GtkRange *range,
GtkUpdateType policy);
diff --git a/gtk/gtkrc.h b/gtk/gtkrc.h
index 31ed606970..a1a98f2278 100644
--- a/gtk/gtkrc.h
+++ b/gtk/gtkrc.h
@@ -119,7 +119,7 @@ void gtk_rc_add_widget_class_style (GtkRcStyle *rc_style,
void gtk_rc_add_class_style (GtkRcStyle *rc_style,
const gchar *pattern);
-GType gtk_rc_style_get_type (void);
+GType gtk_rc_style_get_type (void) G_GNUC_CONST;
GtkRcStyle* gtk_rc_style_new (void);
GtkRcStyle *gtk_rc_style_copy (GtkRcStyle *orig);
void gtk_rc_style_ref (GtkRcStyle *rc_style);
diff --git a/gtk/gtkruler.h b/gtk/gtkruler.h
index 553afcc7bd..2adb80cdb8 100644
--- a/gtk/gtkruler.h
+++ b/gtk/gtkruler.h
@@ -92,7 +92,7 @@ struct _GtkRulerMetric
};
-GtkType gtk_ruler_get_type (void);
+GtkType gtk_ruler_get_type (void) G_GNUC_CONST;
void gtk_ruler_set_metric (GtkRuler *ruler,
GtkMetricType metric);
void gtk_ruler_set_range (GtkRuler *ruler,
diff --git a/gtk/gtkscale.h b/gtk/gtkscale.h
index 6d53ffb5f8..90a6d0ade2 100644
--- a/gtk/gtkscale.h
+++ b/gtk/gtkscale.h
@@ -66,7 +66,7 @@ struct _GtkScaleClass
void (* draw_value) (GtkScale *scale);
};
-GtkType gtk_scale_get_type (void);
+GtkType gtk_scale_get_type (void) G_GNUC_CONST;
void gtk_scale_set_digits (GtkScale *scale,
gint digits);
void gtk_scale_set_draw_value (GtkScale *scale,
diff --git a/gtk/gtkscrollbar.h b/gtk/gtkscrollbar.h
index 8810bb4c0d..3aa59538bf 100644
--- a/gtk/gtkscrollbar.h
+++ b/gtk/gtkscrollbar.h
@@ -59,7 +59,7 @@ struct _GtkScrollbarClass
};
-GtkType gtk_scrollbar_get_type (void);
+GtkType gtk_scrollbar_get_type (void) G_GNUC_CONST;
#ifdef __cplusplus
diff --git a/gtk/gtkscrolledwindow.h b/gtk/gtkscrolledwindow.h
index 92bfa1cb36..4ba2452a6f 100644
--- a/gtk/gtkscrolledwindow.h
+++ b/gtk/gtkscrolledwindow.h
@@ -75,7 +75,7 @@ struct _GtkScrolledWindowClass
};
-GtkType gtk_scrolled_window_get_type (void);
+GtkType gtk_scrolled_window_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_scrolled_window_new (GtkAdjustment *hadjustment,
GtkAdjustment *vadjustment);
void gtk_scrolled_window_set_hadjustment (GtkScrolledWindow *scrolled_window,
diff --git a/gtk/gtkseparator.h b/gtk/gtkseparator.h
index 66f19f543d..602874d12f 100644
--- a/gtk/gtkseparator.h
+++ b/gtk/gtkseparator.h
@@ -60,7 +60,7 @@ struct _GtkSeparatorClass
};
-GtkType gtk_separator_get_type (void);
+GtkType gtk_separator_get_type (void) G_GNUC_CONST;
#ifdef __cplusplus
diff --git a/gtk/gtksignal.h b/gtk/gtksignal.h
index 90f30d55da..aa4b519066 100644
--- a/gtk/gtksignal.h
+++ b/gtk/gtksignal.h
@@ -72,7 +72,7 @@ struct _GtkSignalQuery
/* Application-level methods */
guint gtk_signal_lookup (const gchar *name,
GtkType object_type);
-gchar* gtk_signal_name (guint signal_id);
+gchar* gtk_signal_name (guint signal_id) G_GNUC_CONST;
guint gtk_signal_n_emissions (GtkObject *object,
guint signal_id);
guint gtk_signal_n_emissions_by_name (GtkObject *object,
diff --git a/gtk/gtksocket.h b/gtk/gtksocket.h
index a826dda7a6..4d354a0969 100644
--- a/gtk/gtksocket.h
+++ b/gtk/gtksocket.h
@@ -67,7 +67,7 @@ struct _GtkSocketClass
GtkWidget* gtk_socket_new (void);
-GtkType gtk_socket_get_type (void);
+GtkType gtk_socket_get_type (void) G_GNUC_CONST;
void gtk_socket_steal (GtkSocket *socket,
GdkNativeWindow wid);
diff --git a/gtk/gtkspinbutton.h b/gtk/gtkspinbutton.h
index 6992cb0701..220969eb64 100644
--- a/gtk/gtkspinbutton.h
+++ b/gtk/gtkspinbutton.h
@@ -110,7 +110,7 @@ struct _GtkSpinButtonClass
};
-GtkType gtk_spin_button_get_type (void);
+GtkType gtk_spin_button_get_type (void) G_GNUC_CONST;
void gtk_spin_button_configure (GtkSpinButton *spin_button,
GtkAdjustment *adjustment,
diff --git a/gtk/gtkstatusbar.h b/gtk/gtkstatusbar.h
index f689277596..ccfc2c244e 100644
--- a/gtk/gtkstatusbar.h
+++ b/gtk/gtkstatusbar.h
@@ -82,7 +82,7 @@ struct _GtkStatusbarMsg
guint message_id;
};
-GtkType gtk_statusbar_get_type (void);
+GtkType gtk_statusbar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_statusbar_new (void);
/* If you don't want to use contexts, 0 is a predefined global
* context_id you can pass to push/pop/remove
diff --git a/gtk/gtkstyle.h b/gtk/gtkstyle.h
index 977725c1db..e23203a1c5 100644
--- a/gtk/gtkstyle.h
+++ b/gtk/gtkstyle.h
@@ -387,7 +387,7 @@ struct _GtkStyleClass
GtkOrientation orientation);
};
-GType gtk_style_get_type (void);
+GType gtk_style_get_type (void) G_GNUC_CONST;
GtkStyle* gtk_style_new (void);
GtkStyle* gtk_style_copy (GtkStyle *style);
GtkStyle* gtk_style_attach (GtkStyle *style,
diff --git a/gtk/gtktable.h b/gtk/gtktable.h
index 3ba048897c..103f6d1929 100644
--- a/gtk/gtktable.h
+++ b/gtk/gtktable.h
@@ -99,7 +99,7 @@ struct _GtkTableRowCol
};
-GtkType gtk_table_get_type (void);
+GtkType gtk_table_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_table_new (guint rows,
guint columns,
gboolean homogeneous);
diff --git a/gtk/gtktearoffmenuitem.h b/gtk/gtktearoffmenuitem.h
index 765ab2196a..45b36fc7b8 100644
--- a/gtk/gtktearoffmenuitem.h
+++ b/gtk/gtktearoffmenuitem.h
@@ -61,7 +61,7 @@ struct _GtkTearoffMenuItemClass
};
-GtkType gtk_tearoff_menu_item_get_type (void);
+GtkType gtk_tearoff_menu_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_tearoff_menu_item_new (void);
#ifdef __cplusplus
diff --git a/gtk/gtktext.h b/gtk/gtktext.h
index def883258f..96eb30f183 100644
--- a/gtk/gtktext.h
+++ b/gtk/gtktext.h
@@ -177,7 +177,7 @@ struct _GtkTextClass
};
-GtkType gtk_text_get_type (void);
+GtkType gtk_text_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_text_new (GtkAdjustment *hadj,
GtkAdjustment *vadj);
void gtk_text_set_editable (GtkText *text,
diff --git a/gtk/gtktextbuffer.h b/gtk/gtktextbuffer.h
index 3f164c5aea..cb1226dca4 100644
--- a/gtk/gtktextbuffer.h
+++ b/gtk/gtktextbuffer.h
@@ -87,7 +87,7 @@ struct _GtkTextBufferClass {
};
-GtkType gtk_text_buffer_get_type (void);
+GtkType gtk_text_buffer_get_type (void) G_GNUC_CONST;
diff --git a/gtk/gtktextlayout.h b/gtk/gtktextlayout.h
index 3510e032a7..8feeec9b04 100644
--- a/gtk/gtktextlayout.h
+++ b/gtk/gtktextlayout.h
@@ -140,7 +140,7 @@ struct _GtkTextLineDisplay
extern PangoAttrType gtk_text_attr_appearance_type;
-GtkType gtk_text_layout_get_type (void);
+GtkType gtk_text_layout_get_type (void) G_GNUC_CONST;
GtkTextLayout *gtk_text_layout_new (void);
void gtk_text_layout_set_buffer (GtkTextLayout *layout,
diff --git a/gtk/gtktexttag.h b/gtk/gtktexttag.h
index ef5ee94880..c5a6abf7f6 100644
--- a/gtk/gtktexttag.h
+++ b/gtk/gtktexttag.h
@@ -94,7 +94,7 @@ struct _GtkTextTagClass {
const GtkTextIter *iter); /* location of event in buffer */
};
-GtkType gtk_text_tag_get_type (void);
+GtkType gtk_text_tag_get_type (void) G_GNUC_CONST;
GtkTextTag *gtk_text_tag_new (const gchar *name);
gint gtk_text_tag_get_priority (GtkTextTag *tag);
void gtk_text_tag_set_priority (GtkTextTag *tag,
diff --git a/gtk/gtktexttagtable.h b/gtk/gtktexttagtable.h
index c85ec2f1aa..8e8a9645a8 100644
--- a/gtk/gtktexttagtable.h
+++ b/gtk/gtktexttagtable.h
@@ -36,7 +36,7 @@ struct _GtkTextTagTableClass {
void (* tag_removed) (GtkTextTagTable *table, GtkTextTag *tag);
};
-GtkType gtk_text_tag_table_get_type (void);
+GtkType gtk_text_tag_table_get_type (void) G_GNUC_CONST;
GtkTextTagTable *gtk_text_tag_table_new (void);
void gtk_text_tag_table_add (GtkTextTagTable *table,
diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h
index d1dca9ebf0..f20c2f0620 100644
--- a/gtk/gtktextview.h
+++ b/gtk/gtktextview.h
@@ -125,7 +125,7 @@ struct _GtkTextViewClass {
GtkAdjustment *vadjustment);
};
-GtkType gtk_text_view_get_type (void);
+GtkType gtk_text_view_get_type (void) G_GNUC_CONST;
GtkWidget * gtk_text_view_new (void);
GtkWidget * gtk_text_view_new_with_buffer (GtkTextBuffer *buffer);
void gtk_text_view_set_buffer (GtkTextView *text_view,
diff --git a/gtk/gtktipsquery.h b/gtk/gtktipsquery.h
index 5afb103e21..da1ec6adf5 100644
--- a/gtk/gtktipsquery.h
+++ b/gtk/gtktipsquery.h
@@ -88,7 +88,7 @@ struct _GtkTipsQueryClass
/* --- prototypes --- */
-GtkType gtk_tips_query_get_type (void);
+GtkType gtk_tips_query_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_tips_query_new (void);
void gtk_tips_query_start_query (GtkTipsQuery *tips_query);
void gtk_tips_query_stop_query (GtkTipsQuery *tips_query);
diff --git a/gtk/gtktogglebutton.h b/gtk/gtktogglebutton.h
index b8eb272953..def107e5ac 100644
--- a/gtk/gtktogglebutton.h
+++ b/gtk/gtktogglebutton.h
@@ -66,7 +66,7 @@ struct _GtkToggleButtonClass
};
-GtkType gtk_toggle_button_get_type (void);
+GtkType gtk_toggle_button_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_toggle_button_new (void);
GtkWidget* gtk_toggle_button_new_with_label (const gchar *label);
void gtk_toggle_button_set_mode (GtkToggleButton *toggle_button,
diff --git a/gtk/gtktoolbar.h b/gtk/gtktoolbar.h
index b3ed08ad7a..76702284d0 100644
--- a/gtk/gtktoolbar.h
+++ b/gtk/gtktoolbar.h
@@ -106,7 +106,7 @@ struct _GtkToolbarClass
};
-GtkType gtk_toolbar_get_type (void);
+GtkType gtk_toolbar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_toolbar_new (GtkOrientation orientation,
GtkToolbarStyle style);
diff --git a/gtk/gtktooltips.h b/gtk/gtktooltips.h
index af512a226f..0b9f62a4f9 100644
--- a/gtk/gtktooltips.h
+++ b/gtk/gtktooltips.h
@@ -75,7 +75,7 @@ struct _GtkTooltipsClass
GtkDataClass parent_class;
};
-GtkType gtk_tooltips_get_type (void);
+GtkType gtk_tooltips_get_type (void) G_GNUC_CONST;
GtkTooltips* gtk_tooltips_new (void);
void gtk_tooltips_enable (GtkTooltips *tooltips);
diff --git a/gtk/gtktree.h b/gtk/gtktree.h
index aa8da57708..62b3e23254 100644
--- a/gtk/gtktree.h
+++ b/gtk/gtktree.h
@@ -89,7 +89,7 @@ struct _GtkTreeClass
};
-GtkType gtk_tree_get_type (void);
+GtkType gtk_tree_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_tree_new (void);
void gtk_tree_append (GtkTree *tree,
GtkWidget *tree_item);
diff --git a/gtk/gtktreeitem.h b/gtk/gtktreeitem.h
index a06237a190..036aa7465f 100644
--- a/gtk/gtktreeitem.h
+++ b/gtk/gtktreeitem.h
@@ -73,7 +73,7 @@ struct _GtkTreeItemClass
};
-GtkType gtk_tree_item_get_type (void);
+GtkType gtk_tree_item_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_tree_item_new (void);
GtkWidget* gtk_tree_item_new_with_label (const gchar *label);
void gtk_tree_item_set_subtree (GtkTreeItem *tree_item,
diff --git a/gtk/gtktypeutils.h b/gtk/gtktypeutils.h
index c2fcbde8b7..4a2adac357 100644
--- a/gtk/gtktypeutils.h
+++ b/gtk/gtktypeutils.h
@@ -223,7 +223,7 @@ struct _GtkTypeInfo
};
GtkType gtk_type_unique (GtkType parent_type,
const GtkTypeInfo *gtkinfo);
-gpointer gtk_type_class (GtkType type);
+gpointer gtk_type_class (GtkType type) G_GNUC_CONST;
gpointer gtk_type_new (GtkType type);
diff --git a/gtk/gtkvbbox.h b/gtk/gtkvbbox.h
index 05cbc38c4e..f4b3fbdc8f 100644
--- a/gtk/gtkvbbox.h
+++ b/gtk/gtkvbbox.h
@@ -58,7 +58,7 @@ struct _GtkVButtonBoxClass
};
-GtkType gtk_vbutton_box_get_type (void);
+GtkType gtk_vbutton_box_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_vbutton_box_new (void);
/* buttons can be added by gtk_container_add() */
diff --git a/gtk/gtkvbox.h b/gtk/gtkvbox.h
index 7f322190f2..de026fe4de 100644
--- a/gtk/gtkvbox.h
+++ b/gtk/gtkvbox.h
@@ -59,7 +59,7 @@ struct _GtkVBoxClass
};
-GtkType gtk_vbox_get_type (void);
+GtkType gtk_vbox_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_vbox_new (gboolean homogeneous,
gint spacing);
diff --git a/gtk/gtkviewport.h b/gtk/gtkviewport.h
index edd36a4436..611369ab61 100644
--- a/gtk/gtkviewport.h
+++ b/gtk/gtkviewport.h
@@ -70,7 +70,7 @@ struct _GtkViewportClass
};
-GtkType gtk_viewport_get_type (void);
+GtkType gtk_viewport_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_viewport_new (GtkAdjustment *hadjustment,
GtkAdjustment *vadjustment);
GtkAdjustment* gtk_viewport_get_hadjustment (GtkViewport *viewport);
diff --git a/gtk/gtkvpaned.h b/gtk/gtkvpaned.h
index fc23554422..ceb0d0ce8f 100644
--- a/gtk/gtkvpaned.h
+++ b/gtk/gtkvpaned.h
@@ -55,7 +55,7 @@ struct _GtkVPanedClass
GtkPanedClass parent_class;
};
-GtkType gtk_vpaned_get_type (void);
+GtkType gtk_vpaned_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_vpaned_new (void);
diff --git a/gtk/gtkvruler.h b/gtk/gtkvruler.h
index 5d90dbff24..a18a1305ce 100644
--- a/gtk/gtkvruler.h
+++ b/gtk/gtkvruler.h
@@ -59,7 +59,7 @@ struct _GtkVRulerClass
};
-GtkType gtk_vruler_get_type (void);
+GtkType gtk_vruler_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_vruler_new (void);
diff --git a/gtk/gtkvscale.h b/gtk/gtkvscale.h
index 8139fdc935..5194089050 100644
--- a/gtk/gtkvscale.h
+++ b/gtk/gtkvscale.h
@@ -59,7 +59,7 @@ struct _GtkVScaleClass
};
-GtkType gtk_vscale_get_type (void);
+GtkType gtk_vscale_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_vscale_new (GtkAdjustment *adjustment);
diff --git a/gtk/gtkvscrollbar.h b/gtk/gtkvscrollbar.h
index 12f3e23d84..4ae8f8fc54 100644
--- a/gtk/gtkvscrollbar.h
+++ b/gtk/gtkvscrollbar.h
@@ -59,7 +59,7 @@ extern "C" {
#endif /* __cplusplus */
-GtkType gtk_vscrollbar_get_type (void);
+GtkType gtk_vscrollbar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_vscrollbar_new (GtkAdjustment *adjustment);
diff --git a/gtk/gtkvseparator.h b/gtk/gtkvseparator.h
index 70924a8bc2..69c3ac8756 100644
--- a/gtk/gtkvseparator.h
+++ b/gtk/gtkvseparator.h
@@ -59,7 +59,7 @@ struct _GtkVSeparatorClass
};
-GtkType gtk_vseparator_get_type (void);
+GtkType gtk_vseparator_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_vseparator_new (void);
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 2b10f071a6..a22b7b344f 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -406,7 +406,7 @@ struct _GtkWidgetShapeInfo
GdkBitmap *shape_mask;
};
-GtkType gtk_widget_get_type (void);
+GtkType gtk_widget_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_widget_new (GtkType type,
const gchar *first_arg_name,
...);
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index 1e272fb314..1b86c76d5e 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -90,7 +90,7 @@ struct _GtkWindowClass
};
-GtkType gtk_window_get_type (void);
+GtkType gtk_window_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_window_new (GtkWindowType type);
void gtk_window_set_title (GtkWindow *window,
const gchar *title);