Commit c50066b4 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Mark as const.

2004-11-28  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwidget.h (gtk_requisition_get_type):
	* gtk/gtktypeutils.h (gtk_identifier_get_type):
	* gtk/gtktexttag.h (gtk_text_attributes_get_type):
	* gtk/gtkstyle.h (gtk_border_get_type):
	* gtk/gtkfilesystemmodel.h (_gtk_file_system_model_get_type):
	* gtk/gtkfilechooserentry.h (_gtk_file_chooser_entry_get_type):
	* gtk/gtkfilechooserembed.h (_gtk_file_chooser_embed_get_type):
	* gtk/gtkfilechooserdefault.h (_gtk_file_chooser_default_get_type):
	* gtk/gtkaccelmap.h (gtk_accel_map_get_type): Mark as const.

	* gtk/gtk.symbols:
	* gtk/Makefile.am: Mark get_type() functions
	generated by glib-mkenums as const.
parent fdec8714
2004-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.h (gtk_requisition_get_type):
* gtk/gtktypeutils.h (gtk_identifier_get_type):
* gtk/gtktexttag.h (gtk_text_attributes_get_type):
* gtk/gtkstyle.h (gtk_border_get_type):
* gtk/gtkfilesystemmodel.h (_gtk_file_system_model_get_type):
* gtk/gtkfilechooserentry.h (_gtk_file_chooser_entry_get_type):
* gtk/gtkfilechooserembed.h (_gtk_file_chooser_embed_get_type):
* gtk/gtkfilechooserdefault.h (_gtk_file_chooser_default_get_type):
* gtk/gtkaccelmap.h (gtk_accel_map_get_type): Mark as const.
* gtk/gtk.symbols:
* gtk/Makefile.am: Mark get_type() functions
generated by glib-mkenums as const.
* gdk/gdkvisual.h (gdk_visual_get_type):
* gdk/gdkscreen.h (gdk_screen_get_type):
* gdk/gdkinput.h (gdk_device_get_type):
......
2004-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.h (gtk_requisition_get_type):
* gtk/gtktypeutils.h (gtk_identifier_get_type):
* gtk/gtktexttag.h (gtk_text_attributes_get_type):
* gtk/gtkstyle.h (gtk_border_get_type):
* gtk/gtkfilesystemmodel.h (_gtk_file_system_model_get_type):
* gtk/gtkfilechooserentry.h (_gtk_file_chooser_entry_get_type):
* gtk/gtkfilechooserembed.h (_gtk_file_chooser_embed_get_type):
* gtk/gtkfilechooserdefault.h (_gtk_file_chooser_default_get_type):
* gtk/gtkaccelmap.h (gtk_accel_map_get_type): Mark as const.
* gtk/gtk.symbols:
* gtk/Makefile.am: Mark get_type() functions
generated by glib-mkenums as const.
* gdk/gdkvisual.h (gdk_visual_get_type):
* gdk/gdkscreen.h (gdk_screen_get_type):
* gdk/gdkinput.h (gdk_device_get_type):
......
2004-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.h (gtk_requisition_get_type):
* gtk/gtktypeutils.h (gtk_identifier_get_type):
* gtk/gtktexttag.h (gtk_text_attributes_get_type):
* gtk/gtkstyle.h (gtk_border_get_type):
* gtk/gtkfilesystemmodel.h (_gtk_file_system_model_get_type):
* gtk/gtkfilechooserentry.h (_gtk_file_chooser_entry_get_type):
* gtk/gtkfilechooserembed.h (_gtk_file_chooser_embed_get_type):
* gtk/gtkfilechooserdefault.h (_gtk_file_chooser_default_get_type):
* gtk/gtkaccelmap.h (gtk_accel_map_get_type): Mark as const.
* gtk/gtk.symbols:
* gtk/Makefile.am: Mark get_type() functions
generated by glib-mkenums as const.
* gdk/gdkvisual.h (gdk_visual_get_type):
* gdk/gdkscreen.h (gdk_screen_get_type):
* gdk/gdkinput.h (gdk_device_get_type):
......
2004-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.h (gtk_requisition_get_type):
* gtk/gtktypeutils.h (gtk_identifier_get_type):
* gtk/gtktexttag.h (gtk_text_attributes_get_type):
* gtk/gtkstyle.h (gtk_border_get_type):
* gtk/gtkfilesystemmodel.h (_gtk_file_system_model_get_type):
* gtk/gtkfilechooserentry.h (_gtk_file_chooser_entry_get_type):
* gtk/gtkfilechooserembed.h (_gtk_file_chooser_embed_get_type):
* gtk/gtkfilechooserdefault.h (_gtk_file_chooser_default_get_type):
* gtk/gtkaccelmap.h (gtk_accel_map_get_type): Mark as const.
* gtk/gtk.symbols:
* gtk/Makefile.am: Mark get_type() functions
generated by glib-mkenums as const.
* gdk/gdkvisual.h (gdk_visual_get_type):
* gdk/gdkscreen.h (gdk_screen_get_type):
* gdk/gdkinput.h (gdk_device_get_type):
......
......@@ -622,7 +622,7 @@ stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) Makefile
( cd $(srcdir) && glib-mkenums \
--fhead "#ifndef __GTK_TYPE_BUILTINS_H__\n#define __GTK_TYPE_BUILTINS_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
--fprod "/* enumerations from \"@filename@\" */\n" \
--vhead "GType @enum_name@_get_type (void);\n#define GTK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define GTK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n#endif /* __GTK_TYPE_BUILTINS_H__ */" \
$(gtk_public_h_sources) ) >> xgen-gtbh \
&& (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h ) \
......
This diff is collapsed.
......@@ -70,7 +70,7 @@ void gtk_accel_map_foreach_unfiltered (gpointer data,
GtkAccelMapForeach foreach_func);
/* --- notification --- */
GType gtk_accel_map_get_type (void);
GType gtk_accel_map_get_type (void) G_GNUC_CONST;
GtkAccelMap *gtk_accel_map_get (void);
......
......@@ -32,7 +32,7 @@ G_BEGIN_DECLS
typedef struct _GtkFileChooserDefault GtkFileChooserDefault;
GType _gtk_file_chooser_default_get_type (void);
GType _gtk_file_chooser_default_get_type (void) G_GNUC_CONST;
GtkWidget *_gtk_file_chooser_default_new (const char *file_system);
G_END_DECLS
......
......@@ -55,7 +55,7 @@ struct _GtkFileChooserEmbedIface
void (*default_size_changed) (GtkFileChooserEmbed *chooser_embed);
};
GType _gtk_file_chooser_embed_get_type (void);
GType _gtk_file_chooser_embed_get_type (void) G_GNUC_CONST;
void _gtk_file_chooser_embed_get_default_size (GtkFileChooserEmbed *chooser_embed,
gint *default_width,
......
......@@ -33,7 +33,7 @@ G_BEGIN_DECLS
typedef struct _GtkFileChooserEntry GtkFileChooserEntry;
GType _gtk_file_chooser_entry_get_type (void);
GType _gtk_file_chooser_entry_get_type (void) G_GNUC_CONST;
GtkWidget * _gtk_file_chooser_entry_new (gboolean eat_tab);
void _gtk_file_chooser_entry_set_action (GtkFileChooserEntry *chooser_entry,
GtkFileChooserAction action);
......
......@@ -33,7 +33,7 @@ G_BEGIN_DECLS
typedef struct _GtkFileSystemModel GtkFileSystemModel;
GType _gtk_file_system_model_get_type (void);
GType _gtk_file_system_model_get_type (void) G_GNUC_CONST;
typedef enum {
GTK_FILE_SYSTEM_MODEL_INFO,
......
......@@ -852,7 +852,7 @@ void gtk_paint_resize_grip (GtkStyle *style,
gint height);
GType gtk_border_get_type (void);
GType gtk_border_get_type (void) G_GNUC_CONST;
GtkBorder *gtk_border_copy (const GtkBorder *border_);
void gtk_border_free ( GtkBorder *border_);
......
......@@ -228,7 +228,7 @@ void gtk_text_attributes_copy_values (GtkTextAttributes *src,
void gtk_text_attributes_unref (GtkTextAttributes *values);
void gtk_text_attributes_ref (GtkTextAttributes *values);
GType gtk_text_attributes_get_type (void);
GType gtk_text_attributes_get_type (void) G_GNUC_CONST;
#ifdef __cplusplus
......
......@@ -107,7 +107,7 @@ G_BEGIN_DECLS
/* urg */
#define GTK_TYPE_IDENTIFIER (gtk_identifier_get_type ())
GType gtk_identifier_get_type (void);
GType gtk_identifier_get_type (void) G_GNUC_CONST;
/* --- typedefs --- */
/* here we come with some necessary forward declarations for structures and
......
......@@ -766,7 +766,7 @@ void gtk_widget_add_mnemonic_label (GtkWidget *widget,
void gtk_widget_remove_mnemonic_label (GtkWidget *widget,
GtkWidget *label);
GType gtk_requisition_get_type (void);
GType gtk_requisition_get_type (void) G_GNUC_CONST;
GtkRequisition *gtk_requisition_copy (const GtkRequisition *requisition);
void gtk_requisition_free (GtkRequisition *requisition);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment