Commit 0176b387 authored by Elliot Lee's avatar Elliot Lee
Browse files

Use G_GNUC_CONST.



Use G_GNUC_CONST.
parent a10a7350
2000-08-29 Elliot Lee <sopwith@redhat.com>
* */*.h: Use G_GNUC_CONST.
2000-08-27 Havoc Pennington <hp@pobox.com> 2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs, * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
......
2000-08-29 Elliot Lee <sopwith@redhat.com>
* */*.h: Use G_GNUC_CONST.
2000-08-27 Havoc Pennington <hp@pobox.com> 2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs, * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
......
2000-08-29 Elliot Lee <sopwith@redhat.com>
* */*.h: Use G_GNUC_CONST.
2000-08-27 Havoc Pennington <hp@pobox.com> 2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs, * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
......
2000-08-29 Elliot Lee <sopwith@redhat.com>
* */*.h: Use G_GNUC_CONST.
2000-08-27 Havoc Pennington <hp@pobox.com> 2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs, * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
......
2000-08-29 Elliot Lee <sopwith@redhat.com>
* */*.h: Use G_GNUC_CONST.
2000-08-27 Havoc Pennington <hp@pobox.com> 2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs, * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
......
2000-08-29 Elliot Lee <sopwith@redhat.com>
* */*.h: Use G_GNUC_CONST.
2000-08-27 Havoc Pennington <hp@pobox.com> 2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs, * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
......
2000-08-29 Elliot Lee <sopwith@redhat.com>
* */*.h: Use G_GNUC_CONST.
2000-08-27 Havoc Pennington <hp@pobox.com> 2000-08-27 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs, * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
......
...@@ -70,7 +70,7 @@ struct _GdkPixbufLoaderClass ...@@ -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 (void);
GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type); GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type);
gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader, gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader,
......
...@@ -60,7 +60,7 @@ typedef void (* GdkPixbufDestroyNotify) (guchar *pixels, gpointer data); ...@@ -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 */ /* Reference counting */
...@@ -195,7 +195,7 @@ typedef enum { ...@@ -195,7 +195,7 @@ typedef enum {
GDK_PIXBUF_FRAME_REVERT GDK_PIXBUF_FRAME_REVERT
} GdkPixbufFrameAction; } 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); GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *filename);
......
...@@ -55,7 +55,7 @@ struct _GnomeCanvasPixbufClass { ...@@ -55,7 +55,7 @@ struct _GnomeCanvasPixbufClass {
}; };
GtkType gnome_canvas_pixbuf_get_type (void); GtkType gnome_canvas_pixbuf_get_type (void) G_GNUC_CONST;
......
...@@ -141,13 +141,13 @@ guint gdk_keyval_from_name (const gchar *keyval_name); ...@@ -141,13 +141,13 @@ guint gdk_keyval_from_name (const gchar *keyval_name);
void gdk_keyval_convert_case (guint symbol, void gdk_keyval_convert_case (guint symbol,
guint *lower, guint *lower,
guint *upper); guint *upper);
guint gdk_keyval_to_upper (guint keyval); guint gdk_keyval_to_upper (guint keyval) G_GNUC_CONST;
guint gdk_keyval_to_lower (guint keyval); guint gdk_keyval_to_lower (guint keyval) G_GNUC_CONST;
gboolean gdk_keyval_is_upper (guint keyval); gboolean gdk_keyval_is_upper (guint keyval) G_GNUC_CONST;
gboolean gdk_keyval_is_lower (guint keyval); gboolean gdk_keyval_is_lower (guint keyval) G_GNUC_CONST;
guint32 gdk_keyval_to_unicode (guint keyval); guint32 gdk_keyval_to_unicode (guint keyval) G_GNUC_CONST;
guint gdk_unicode_to_keyval (guint32 wc); guint gdk_unicode_to_keyval (guint32 wc) G_GNUC_CONST;
/* Threading /* Threading
*/ */
......
...@@ -55,7 +55,7 @@ struct _GdkColormapClass ...@@ -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, GdkColormap* gdk_colormap_new (GdkVisual *visual,
gboolean allocate); gboolean allocate);
......
...@@ -76,7 +76,7 @@ struct _GdkDragContextClass { ...@@ -76,7 +76,7 @@ struct _GdkDragContextClass {
/* Drag and Drop */ /* 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); GdkDragContext * gdk_drag_context_new (void);
void gdk_drag_context_ref (GdkDragContext *context); void gdk_drag_context_ref (GdkDragContext *context);
void gdk_drag_context_unref (GdkDragContext *context); void gdk_drag_context_unref (GdkDragContext *context);
......
...@@ -186,7 +186,7 @@ struct _GdkGCClass ...@@ -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 (GdkDrawable *drawable);
GdkGC *gdk_gc_new_with_values (GdkDrawable *drawable, GdkGC *gdk_gc_new_with_values (GdkDrawable *drawable,
GdkGCValues *values, GdkGCValues *values,
......
...@@ -56,7 +56,7 @@ struct _GdkImageClass ...@@ -56,7 +56,7 @@ struct _GdkImageClass
GObjectClass parent_class; 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, GdkImage* gdk_image_new_bitmap (GdkVisual *visual,
gpointer data, gpointer data,
......
...@@ -190,8 +190,8 @@ void _gdk_windowing_window_destroy (GdkWindow *window, ...@@ -190,8 +190,8 @@ void _gdk_windowing_window_destroy (GdkWindow *window,
gboolean foreign_destroy); gboolean foreign_destroy);
/* Implementation types */ /* Implementation types */
GType _gdk_window_impl_get_type (void); GType _gdk_window_impl_get_type (void) G_GNUC_CONST;
GType _gdk_pixmap_impl_get_type (void); GType _gdk_pixmap_impl_get_type (void) G_GNUC_CONST;
/************************************ /************************************
* Initialization and exit routines * * Initialization and exit routines *
......
...@@ -34,7 +34,7 @@ struct _GdkPixmapObjectClass ...@@ -34,7 +34,7 @@ struct _GdkPixmapObjectClass
}; };
GType gdk_pixmap_get_type (void); GType gdk_pixmap_get_type (void) G_GNUC_CONST;
/* Pixmaps /* Pixmaps
*/ */
......
...@@ -16,7 +16,7 @@ typedef enum ...@@ -16,7 +16,7 @@ typedef enum
GdkAtom gdk_atom_intern (const gchar *atom_name, GdkAtom gdk_atom_intern (const gchar *atom_name,
gboolean only_if_exists); 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, gboolean gdk_property_get (GdkWindow *window,
GdkAtom property, GdkAtom property,
......
...@@ -45,7 +45,7 @@ struct _GdkRgbCmap { ...@@ -45,7 +45,7 @@ struct _GdkRgbCmap {
void gdk_rgb_init (void); 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, void gdk_rgb_gc_set_foreground (GdkGC *gc,
guint32 rgb); guint32 rgb);
void gdk_rgb_gc_set_background (GdkGC *gc, void gdk_rgb_gc_set_background (GdkGC *gc,
......
...@@ -196,7 +196,7 @@ struct _GdkWindowObjectClass ...@@ -196,7 +196,7 @@ struct _GdkWindowObjectClass
/* Windows /* Windows
*/ */
GType gdk_window_object_get_type (void); GType gdk_window_object_get_type (void) G_GNUC_CONST;
GdkWindow* gdk_window_new (GdkWindow *parent, GdkWindow* gdk_window_new (GdkWindow *parent,
GdkWindowAttr *attributes, GdkWindowAttr *attributes,
gint attributes_mask); gint attributes_mask);
......
...@@ -93,7 +93,7 @@ typedef struct { ...@@ -93,7 +93,7 @@ typedef struct {
GdkDrawableFBClass klass; GdkDrawableFBClass klass;
} GdkPixmapFBClass; } GdkPixmapFBClass;
GType gdk_drawable_impl_fb_get_type (void); GType gdk_drawable_impl_fb_get_type (void) G_GNUC_CONST;
typedef struct { typedef struct {
gulong length; gulong length;
...@@ -185,12 +185,7 @@ typedef struct { ...@@ -185,12 +185,7 @@ typedef struct {
GdkGCClass parent_class; GdkGCClass parent_class;
} GdkGCFBClass; } GdkGCFBClass;
GType gdk_gc_fb_get_type (void); GType gdk_gc_fb_get_type (void) G_GNUC_CONST;
#if 0
GdkGC * _gdk_fb_gc_new (GdkDrawable *drawable,
GdkGCValues *values,
GdkGCValuesMask values_mask);
#endif
/* Routines from gdkgeometry-fb.c */ /* Routines from gdkgeometry-fb.c */
...@@ -319,7 +314,7 @@ typedef struct { ...@@ -319,7 +314,7 @@ typedef struct {
int hbearing; int hbearing;
} PangoFBGlyphInfo; } 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); gboolean pango_fb_has_glyph(PangoFont *font, PangoGlyph glyph);
PangoGlyph pango_fb_get_unknown_glyph(PangoFont *font); PangoGlyph pango_fb_get_unknown_glyph(PangoFont *font);
PangoFBGlyphInfo *pango_fb_font_get_glyph_info(PangoFont *font, PangoGlyph glyph); PangoFBGlyphInfo *pango_fb_font_get_glyph_info(PangoFont *font, PangoGlyph glyph);
......
...@@ -70,7 +70,7 @@ struct _GdkPixbufLoaderClass ...@@ -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 (void);
GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type); GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type);
gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader, gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader,
......
...@@ -86,7 +86,7 @@ struct _GtkAccelEntry ...@@ -86,7 +86,7 @@ struct _GtkAccelEntry
/* Accelerators /* Accelerators
*/ */
gboolean gtk_accelerator_valid (guint keyval, gboolean gtk_accelerator_valid (guint keyval,
GdkModifierType modifiers); GdkModifierType modifiers) G_GNUC_CONST;
void gtk_accelerator_parse (const gchar *accelerator, void gtk_accelerator_parse (const gchar *accelerator,
guint *accelerator_key, guint *accelerator_key,
GdkModifierType *accelerator_mods); GdkModifierType *accelerator_mods);
......
...@@ -76,7 +76,7 @@ struct _GtkAccelLabelClass ...@@ -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); GtkWidget* gtk_accel_label_new (const gchar *string);
guint gtk_accel_label_get_accel_width (GtkAccelLabel *accel_label); guint gtk_accel_label_get_accel_width (GtkAccelLabel *accel_label);
void gtk_accel_label_set_accel_widget (GtkAccelLabel *accel_label, void gtk_accel_label_set_accel_widget (GtkAccelLabel *accel_label,
......
...@@ -69,7 +69,7 @@ struct _GtkAdjustmentClass ...@@ -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, GtkObject* gtk_adjustment_new (gfloat value,
gfloat lower, gfloat lower,
gfloat upper, gfloat upper,
......
...@@ -64,7 +64,7 @@ struct _GtkAlignmentClass ...@@ -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, GtkWidget* gtk_alignment_new (gfloat xalign,
gfloat yalign, gfloat yalign,
gfloat xscale, gfloat xscale,
......
...@@ -62,7 +62,7 @@ struct _GtkArrowClass ...@@ -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, GtkWidget* gtk_arrow_new (GtkArrowType arrow_type,
GtkShadowType shadow_type); GtkShadowType shadow_type);
void gtk_arrow_set (GtkArrow *arrow, void gtk_arrow_set (GtkArrow *arrow,
......
...@@ -66,7 +66,7 @@ struct _GtkAspectFrameClass ...@@ -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, GtkWidget* gtk_aspect_frame_new (const gchar *label,
gfloat xalign, gfloat xalign,
gfloat yalign, gfloat yalign,
......
...@@ -65,7 +65,7 @@ struct _GtkButtonBoxClass ...@@ -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_size_default (gint *min_width, gint *min_height);
void gtk_button_box_get_child_ipadding_default (gint *ipad_x, gint *ipad_y); void gtk_button_box_get_child_ipadding_default (gint *ipad_x, gint *ipad_y);
......
...@@ -61,7 +61,7 @@ struct _GtkBinClass ...@@ -61,7 +61,7 @@ struct _GtkBinClass
}; };
GtkType gtk_bin_get_type (void); GtkType gtk_bin_get_type (void) G_GNUC_CONST;
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -73,7 +73,7 @@ struct _GtkBoxChild ...@@ -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, void gtk_box_pack_start (GtkBox *box,
GtkWidget *child, GtkWidget *child,
gboolean expand, gboolean expand,
......
...@@ -73,7 +73,7 @@ struct _GtkButtonClass ...@@ -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 (void);
GtkWidget* gtk_button_new_with_label (const gchar *label); GtkWidget* gtk_button_new_with_label (const gchar *label);
void gtk_button_pressed (GtkButton *button); void gtk_button_pressed (GtkButton *button);
......
...@@ -107,7 +107,7 @@ struct _GtkCalendarClass ...@@ -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); GtkWidget* gtk_calendar_new (void);
gint gtk_calendar_select_month (GtkCalendar *calendar, gint gtk_calendar_select_month (GtkCalendar *calendar,
......
...@@ -65,7 +65,7 @@ struct _GtkCheckButtonClass ...@@ -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 (void);
GtkWidget* gtk_check_button_new_with_label (const gchar *label); GtkWidget* gtk_check_button_new_with_label (const gchar *label);
......
...@@ -66,7 +66,7 @@ struct _GtkCheckMenuItemClass ...@@ -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 (void);
GtkWidget* gtk_check_menu_item_new_with_label (const gchar *label); GtkWidget* gtk_check_menu_item_new_with_label (const gchar *label);
void gtk_check_menu_item_set_active (GtkCheckMenuItem *check_menu_item, void gtk_check_menu_item_set_active (GtkCheckMenuItem *check_menu_item,
......
...@@ -436,7 +436,7 @@ struct _GtkCell ...@@ -436,7 +436,7 @@ struct _GtkCell
} u; } u;
}; };
GtkType gtk_clist_get_type (void); GtkType gtk_clist_get_type (void) G_GNUC_CONST;
/* constructors useful for gtk-- wrappers */ /* constructors useful for gtk-- wrappers */
void gtk_clist_construct (GtkCList *clist, void gtk_clist_construct (GtkCList *clist,
......
...@@ -69,7 +69,7 @@ struct _GtkColorSelectionClass ...@@ -69,7 +69,7 @@ struct _GtkColorSelectionClass
/* ColorSelection */ /* ColorSelection */
GtkType gtk_color_selection_get_type (void); GtkType gtk_color_selection_get_type (void) G_GNUC_CONST;
GtkWidget * gtk_color_selection_new (void); GtkWidget * gtk_color_selection_new (void);
void gtk_color_selection_set_update_policy (GtkColorSelection *colorsel, void gtk_color_selection_set_update_policy (GtkColorSelection *colorsel,
GtkUpdateType policy); GtkUpdateType policy);
......
...@@ -63,7 +63,7 @@ struct _GtkColorSelectionDialogClass ...@@ -63,7 +63,7 @@ struct _GtkColorSelectionDialogClass
/* ColorSelectionDialog */ /* 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); GtkWidget* gtk_color_selection_dialog_new (const gchar *title);
......
...@@ -71,7 +71,7 @@ struct _GtkComboClass { ...@@ -71,7 +71,7 @@ struct _GtkComboClass {
GtkHBoxClass parent_class; GtkHBoxClass parent_class;
}; };
GtkType gtk_combo_get_type (void); GtkType gtk_combo_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_combo_new (void); GtkWidget* gtk_combo_new (void);
/* the text in the entry must be or not be in the list */ /* the text in the entry must be or not be in the list */
......
...@@ -106,7 +106,7 @@ struct _GtkContainerClass ...@@ -106,7 +106,7 @@ struct _GtkContainerClass
/* Application-level methods */ /* Application-level methods */