summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>2000-08-30 00:33:38 +0000
committerElliot Lee <sopwith@src.gnome.org>2000-08-30 00:33:38 +0000
commit0176b387c85a150b7d6fdac22be6db627d523217 (patch)
treec3214257c87fdad8b7ca8b1e63637ddc2160da20 /gdk
parenta10a7350f3d1d90ee5f888dfe360d8b9221186c4 (diff)
downloadgtk+-0176b387c85a150b7d6fdac22be6db627d523217.tar.gz
Use G_GNUC_CONST.
Use G_GNUC_CONST.
Diffstat (limited to 'gdk')
-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
11 files changed, 19 insertions, 24 deletions
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);