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

Mark as const.

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

	* gtk/gtkuimanager.h (gtk_ui_manager_get_type):
	* gtk/gtktreeview.h (gtk_tree_view_get_type):
	* gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type):
	* gtk/gtktreestore.h (gtk_tree_store_get_type):
	* gtk/gtktreeselection.h (gtk_tree_selection_get_type):
	* gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type):
	* gtk/gtktreemodel.h (gtk_tree_iter_get_type):
	(gtk_tree_path_get_type):
	(gtk_tree_row_reference_get_type):
	* gtk/gtktoolitem.h (gtk_tool_item_get_type):
	* gtk/gtktoolbutton.h (gtk_tool_button_get_type):
	* gtk/gtktoggleaction.h (gtk_toggle_action_get_type):
	* gtk/gtkthemes.h (gtk_theme_engine_get_type):
	* gtk/gtktextiter.h (gtk_text_iter_get_type):
	* gtk/gtksettings.h (gtk_settings_get_type):
	* gtk/gtkselection.h (gtk_selection_data_get_type):
	* gtk/gtkradioaction.h (gtk_radio_action_get_type):
	* gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type):
	* gtk/gtkliststore.h (gtk_list_store_get_type):
	* gtk/gtkiconview.h (gtk_icon_view_get_type):
	* gtk/gtkicontheme.h (gtk_icon_info_get_type):
	* gtk/gtkiconfactory.h (gtk_icon_factory_get_type):
	(gtk_icon_set_get_type):
	(gtk_icon_source_get_type):
	* gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type):
	* gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type):
	* gtk/gtkfilesystem.h (gtk_file_folder_get_type):
	(gtk_file_info_get_type, gtk_file_path_get_type):
	(gtk_file_system_get_type):
	* gtk/gtkfilefilter.h (gtk_file_filter_get_type):
	* gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type):
	* gtk/gtkfilechooser.h (gtk_file_chooser_get_type):
	* gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type):
	* gtk/gtkexpander.h (gtk_expander_get_type):
	* gtk/gtkentrycompletion.h (gtk_entry_completion_get_type):
	* gtk/gtkcombobox.h (gtk_combo_box_get_type):
	* gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type):
	* gtk/gtkclipboard.h (gtk_clipboard_get_type):
	* gtk/gtkcellview.h (gtk_cell_view_get_type):
	* gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type):
	* gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type):
	* gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type):
	* gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type):
	* gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type):
	* gtk/gtkcelllayout.h (gtk_cell_layout_get_type):
	* gtk/gtkactiongroup.h (gtk_action_group_get_type):
	* gtk/gtkaction.h (gtk_action_get_type):
	* gtk/gtkaccessible.h (gtk_accessible_get_type):
	* gtk/gtkaccelmap.h (gtk_accel_map_get_type):
	* gtk/gtkaccelgroup.h (gtk_accel_group_get_type):
	* gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const.

	* gtk/gtkicontheme.h:  Don't mark gtk_icon_theme_error_quark()
	as const, to be consistent with all the other error_quark
	functions. (technically they are const, but since these are
	called only in error paths, giving the compiler better
	optimization opportunities doesn't matter much)

	* gtk/gtk.symbols:
	* gdk/gdk.symbols: Add attribute annotations.

	* gtk/makegtkalias.pl:
	* gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE.

	* gtk/Makefile.am (gtk.def):
	* gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep
	PRIVATE.
parent eeb0f9bc
2004-11-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.h (gtk_ui_manager_get_type):
* gtk/gtktreeview.h (gtk_tree_view_get_type):
* gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type):
* gtk/gtktreestore.h (gtk_tree_store_get_type):
* gtk/gtktreeselection.h (gtk_tree_selection_get_type):
* gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type):
* gtk/gtktreemodel.h (gtk_tree_iter_get_type):
(gtk_tree_path_get_type):
(gtk_tree_row_reference_get_type):
* gtk/gtktoolitem.h (gtk_tool_item_get_type):
* gtk/gtktoolbutton.h (gtk_tool_button_get_type):
* gtk/gtktoggleaction.h (gtk_toggle_action_get_type):
* gtk/gtkthemes.h (gtk_theme_engine_get_type):
* gtk/gtktextiter.h (gtk_text_iter_get_type):
* gtk/gtksettings.h (gtk_settings_get_type):
* gtk/gtkselection.h (gtk_selection_data_get_type):
* gtk/gtkradioaction.h (gtk_radio_action_get_type):
* gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type):
* gtk/gtkliststore.h (gtk_list_store_get_type):
* gtk/gtkiconview.h (gtk_icon_view_get_type):
* gtk/gtkicontheme.h (gtk_icon_info_get_type):
* gtk/gtkiconfactory.h (gtk_icon_factory_get_type):
(gtk_icon_set_get_type):
(gtk_icon_source_get_type):
* gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type):
* gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type):
* gtk/gtkfilesystem.h (gtk_file_folder_get_type):
(gtk_file_info_get_type, gtk_file_path_get_type):
(gtk_file_system_get_type):
* gtk/gtkfilefilter.h (gtk_file_filter_get_type):
* gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type):
* gtk/gtkfilechooser.h (gtk_file_chooser_get_type):
* gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type):
* gtk/gtkexpander.h (gtk_expander_get_type):
* gtk/gtkentrycompletion.h (gtk_entry_completion_get_type):
* gtk/gtkcombobox.h (gtk_combo_box_get_type):
* gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type):
* gtk/gtkclipboard.h (gtk_clipboard_get_type):
* gtk/gtkcellview.h (gtk_cell_view_get_type):
* gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type):
* gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type):
* gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type):
* gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type):
* gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type):
* gtk/gtkcelllayout.h (gtk_cell_layout_get_type):
* gtk/gtkactiongroup.h (gtk_action_group_get_type):
* gtk/gtkaction.h (gtk_action_get_type):
* gtk/gtkaccessible.h (gtk_accessible_get_type):
* gtk/gtkaccelmap.h (gtk_accel_map_get_type):
* gtk/gtkaccelgroup.h (gtk_accel_group_get_type):
* gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const.
* gtk/gtkicontheme.h: Don't mark gtk_icon_theme_error_quark()
as const, to be consistent with all the other error_quark
functions. (technically they are const, but since these are
called only in error paths, giving the compiler better
optimization opportunities doesn't matter much)
* gtk/gtk.symbols:
* gdk/gdk.symbols: Add attribute annotations.
* gtk/makegtkalias.pl:
* gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE.
* gtk/Makefile.am (gtk.def):
* gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep
PRIVATE.
2004-11-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size): Add a deprecation
......
2004-11-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.h (gtk_ui_manager_get_type):
* gtk/gtktreeview.h (gtk_tree_view_get_type):
* gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type):
* gtk/gtktreestore.h (gtk_tree_store_get_type):
* gtk/gtktreeselection.h (gtk_tree_selection_get_type):
* gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type):
* gtk/gtktreemodel.h (gtk_tree_iter_get_type):
(gtk_tree_path_get_type):
(gtk_tree_row_reference_get_type):
* gtk/gtktoolitem.h (gtk_tool_item_get_type):
* gtk/gtktoolbutton.h (gtk_tool_button_get_type):
* gtk/gtktoggleaction.h (gtk_toggle_action_get_type):
* gtk/gtkthemes.h (gtk_theme_engine_get_type):
* gtk/gtktextiter.h (gtk_text_iter_get_type):
* gtk/gtksettings.h (gtk_settings_get_type):
* gtk/gtkselection.h (gtk_selection_data_get_type):
* gtk/gtkradioaction.h (gtk_radio_action_get_type):
* gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type):
* gtk/gtkliststore.h (gtk_list_store_get_type):
* gtk/gtkiconview.h (gtk_icon_view_get_type):
* gtk/gtkicontheme.h (gtk_icon_info_get_type):
* gtk/gtkiconfactory.h (gtk_icon_factory_get_type):
(gtk_icon_set_get_type):
(gtk_icon_source_get_type):
* gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type):
* gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type):
* gtk/gtkfilesystem.h (gtk_file_folder_get_type):
(gtk_file_info_get_type, gtk_file_path_get_type):
(gtk_file_system_get_type):
* gtk/gtkfilefilter.h (gtk_file_filter_get_type):
* gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type):
* gtk/gtkfilechooser.h (gtk_file_chooser_get_type):
* gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type):
* gtk/gtkexpander.h (gtk_expander_get_type):
* gtk/gtkentrycompletion.h (gtk_entry_completion_get_type):
* gtk/gtkcombobox.h (gtk_combo_box_get_type):
* gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type):
* gtk/gtkclipboard.h (gtk_clipboard_get_type):
* gtk/gtkcellview.h (gtk_cell_view_get_type):
* gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type):
* gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type):
* gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type):
* gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type):
* gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type):
* gtk/gtkcelllayout.h (gtk_cell_layout_get_type):
* gtk/gtkactiongroup.h (gtk_action_group_get_type):
* gtk/gtkaction.h (gtk_action_get_type):
* gtk/gtkaccessible.h (gtk_accessible_get_type):
* gtk/gtkaccelmap.h (gtk_accel_map_get_type):
* gtk/gtkaccelgroup.h (gtk_accel_group_get_type):
* gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const.
* gtk/gtkicontheme.h: Don't mark gtk_icon_theme_error_quark()
as const, to be consistent with all the other error_quark
functions. (technically they are const, but since these are
called only in error paths, giving the compiler better
optimization opportunities doesn't matter much)
* gtk/gtk.symbols:
* gdk/gdk.symbols: Add attribute annotations.
* gtk/makegtkalias.pl:
* gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE.
* gtk/Makefile.am (gtk.def):
* gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep
PRIVATE.
2004-11-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size): Add a deprecation
......
2004-11-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.h (gtk_ui_manager_get_type):
* gtk/gtktreeview.h (gtk_tree_view_get_type):
* gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type):
* gtk/gtktreestore.h (gtk_tree_store_get_type):
* gtk/gtktreeselection.h (gtk_tree_selection_get_type):
* gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type):
* gtk/gtktreemodel.h (gtk_tree_iter_get_type):
(gtk_tree_path_get_type):
(gtk_tree_row_reference_get_type):
* gtk/gtktoolitem.h (gtk_tool_item_get_type):
* gtk/gtktoolbutton.h (gtk_tool_button_get_type):
* gtk/gtktoggleaction.h (gtk_toggle_action_get_type):
* gtk/gtkthemes.h (gtk_theme_engine_get_type):
* gtk/gtktextiter.h (gtk_text_iter_get_type):
* gtk/gtksettings.h (gtk_settings_get_type):
* gtk/gtkselection.h (gtk_selection_data_get_type):
* gtk/gtkradioaction.h (gtk_radio_action_get_type):
* gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type):
* gtk/gtkliststore.h (gtk_list_store_get_type):
* gtk/gtkiconview.h (gtk_icon_view_get_type):
* gtk/gtkicontheme.h (gtk_icon_info_get_type):
* gtk/gtkiconfactory.h (gtk_icon_factory_get_type):
(gtk_icon_set_get_type):
(gtk_icon_source_get_type):
* gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type):
* gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type):
* gtk/gtkfilesystem.h (gtk_file_folder_get_type):
(gtk_file_info_get_type, gtk_file_path_get_type):
(gtk_file_system_get_type):
* gtk/gtkfilefilter.h (gtk_file_filter_get_type):
* gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type):
* gtk/gtkfilechooser.h (gtk_file_chooser_get_type):
* gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type):
* gtk/gtkexpander.h (gtk_expander_get_type):
* gtk/gtkentrycompletion.h (gtk_entry_completion_get_type):
* gtk/gtkcombobox.h (gtk_combo_box_get_type):
* gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type):
* gtk/gtkclipboard.h (gtk_clipboard_get_type):
* gtk/gtkcellview.h (gtk_cell_view_get_type):
* gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type):
* gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type):
* gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type):
* gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type):
* gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type):
* gtk/gtkcelllayout.h (gtk_cell_layout_get_type):
* gtk/gtkactiongroup.h (gtk_action_group_get_type):
* gtk/gtkaction.h (gtk_action_get_type):
* gtk/gtkaccessible.h (gtk_accessible_get_type):
* gtk/gtkaccelmap.h (gtk_accel_map_get_type):
* gtk/gtkaccelgroup.h (gtk_accel_group_get_type):
* gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const.
* gtk/gtkicontheme.h: Don't mark gtk_icon_theme_error_quark()
as const, to be consistent with all the other error_quark
functions. (technically they are const, but since these are
called only in error paths, giving the compiler better
optimization opportunities doesn't matter much)
* gtk/gtk.symbols:
* gdk/gdk.symbols: Add attribute annotations.
* gtk/makegtkalias.pl:
* gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE.
* gtk/Makefile.am (gtk.def):
* gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep
PRIVATE.
2004-11-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size): Add a deprecation
......
2004-11-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.h (gtk_ui_manager_get_type):
* gtk/gtktreeview.h (gtk_tree_view_get_type):
* gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type):
* gtk/gtktreestore.h (gtk_tree_store_get_type):
* gtk/gtktreeselection.h (gtk_tree_selection_get_type):
* gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type):
* gtk/gtktreemodel.h (gtk_tree_iter_get_type):
(gtk_tree_path_get_type):
(gtk_tree_row_reference_get_type):
* gtk/gtktoolitem.h (gtk_tool_item_get_type):
* gtk/gtktoolbutton.h (gtk_tool_button_get_type):
* gtk/gtktoggleaction.h (gtk_toggle_action_get_type):
* gtk/gtkthemes.h (gtk_theme_engine_get_type):
* gtk/gtktextiter.h (gtk_text_iter_get_type):
* gtk/gtksettings.h (gtk_settings_get_type):
* gtk/gtkselection.h (gtk_selection_data_get_type):
* gtk/gtkradioaction.h (gtk_radio_action_get_type):
* gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type):
* gtk/gtkliststore.h (gtk_list_store_get_type):
* gtk/gtkiconview.h (gtk_icon_view_get_type):
* gtk/gtkicontheme.h (gtk_icon_info_get_type):
* gtk/gtkiconfactory.h (gtk_icon_factory_get_type):
(gtk_icon_set_get_type):
(gtk_icon_source_get_type):
* gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type):
* gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type):
* gtk/gtkfilesystem.h (gtk_file_folder_get_type):
(gtk_file_info_get_type, gtk_file_path_get_type):
(gtk_file_system_get_type):
* gtk/gtkfilefilter.h (gtk_file_filter_get_type):
* gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type):
* gtk/gtkfilechooser.h (gtk_file_chooser_get_type):
* gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type):
* gtk/gtkexpander.h (gtk_expander_get_type):
* gtk/gtkentrycompletion.h (gtk_entry_completion_get_type):
* gtk/gtkcombobox.h (gtk_combo_box_get_type):
* gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type):
* gtk/gtkclipboard.h (gtk_clipboard_get_type):
* gtk/gtkcellview.h (gtk_cell_view_get_type):
* gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type):
* gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type):
* gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type):
* gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type):
* gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type):
* gtk/gtkcelllayout.h (gtk_cell_layout_get_type):
* gtk/gtkactiongroup.h (gtk_action_group_get_type):
* gtk/gtkaction.h (gtk_action_get_type):
* gtk/gtkaccessible.h (gtk_accessible_get_type):
* gtk/gtkaccelmap.h (gtk_accel_map_get_type):
* gtk/gtkaccelgroup.h (gtk_accel_group_get_type):
* gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const.
* gtk/gtkicontheme.h: Don't mark gtk_icon_theme_error_quark()
as const, to be consistent with all the other error_quark
functions. (technically they are const, but since these are
called only in error paths, giving the compiler better
optimization opportunities doesn't matter much)
* gtk/gtk.symbols:
* gdk/gdk.symbols: Add attribute annotations.
* gtk/makegtkalias.pl:
* gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE.
* gtk/Makefile.am (gtk.def):
* gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep
PRIVATE.
2004-11-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size): Add a deprecation
......
......@@ -177,7 +177,7 @@ uninstall-ms-lib:
endif
gdk.def: gdk.symbols
(echo -e EXPORTS; cpp -P -DGDK_WINDOWING_WIN32 -DINCLUDE_VARIABLES $(srcdir)/gdk.symbols | sed -e '/^$$/d' -e 's/^/ /') > gdk.def
(echo -e EXPORTS; cpp -P -DGDK_WINDOWING_WIN32 -DINCLUDE_VARIABLES $(srcdir)/gdk.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g') > gdk.def
gdkalias.h: gdk.symbols
$(srcdir)/makegdkalias.pl < $(srcdir)/gdk.symbols > gdkalias.h
......
......@@ -26,7 +26,7 @@ gdk_colormap_free_colors
gdk_colormap_get_screen
gdk_colormap_get_system
gdk_colormap_get_system_size
gdk_colormap_get_type
gdk_colormap_get_type G_GNUC_CONST
gdk_colormap_get_visual
gdk_colormap_new
gdk_colormap_query_color
......@@ -79,7 +79,7 @@ gdk_display_keyboard_ungrab
gdk_display_list_devices
gdk_display_manager_get
gdk_display_manager_get_default_display
gdk_display_manager_get_type
gdk_display_manager_get_type G_GNUC_CONST
gdk_display_manager_list_displays
gdk_display_manager_set_default_display
gdk_display_open
......@@ -101,7 +101,7 @@ gdk_display_sync
gdk_drag_abort
gdk_drag_action_get_type
gdk_drag_begin
gdk_drag_context_get_type
gdk_drag_context_get_type G_GNUC_CONST
gdk_drag_context_new
gdk_drag_context_ref
gdk_drag_context_unref
......@@ -210,7 +210,7 @@ gdk_function_get_type
gdk_gc_copy
gdk_gc_get_colormap
gdk_gc_get_screen
gdk_gc_get_type
gdk_gc_get_type G_GNUC_CONST
gdk_gc_get_values
gdk_gc_new
gdk_gc_new_with_values
......@@ -249,7 +249,7 @@ gdk_gravity_get_type
gdk_image_get
gdk_image_get_colormap
gdk_image_get_pixel
gdk_image_get_type
gdk_image_get_type G_GNUC_CONST
gdk_image_new
gdk_image_new_bitmap
gdk_image_put_pixel
......@@ -275,17 +275,17 @@ gdk_keymap_get_direction
gdk_keymap_get_entries_for_keycode
gdk_keymap_get_entries_for_keyval
gdk_keymap_get_for_display
gdk_keymap_get_type
gdk_keymap_get_type G_GNUC_CONST
gdk_keymap_lookup_key
gdk_keymap_translate_keyboard_state
gdk_keyval_convert_case
gdk_keyval_from_name
gdk_keyval_is_lower
gdk_keyval_is_upper
gdk_keyval_name
gdk_keyval_to_lower
gdk_keyval_to_unicode
gdk_keyval_to_upper
gdk_keyval_is_lower G_GNUC_CONST
gdk_keyval_is_upper G_GNUC_CONST
gdk_keyval_name G_GNUC_CONST
gdk_keyval_to_lower G_GNUC_CONST
gdk_keyval_to_unicode G_GNUC_CONST
gdk_keyval_to_upper G_GNUC_CONST
gdk_line_style_get_type
gdk_list_visuals
gdk_mbstowcs
......@@ -308,7 +308,7 @@ gdk_pango_context_set_colormap
gdk_pango_layout_get_clip_region
gdk_pango_layout_line_get_clip_region
gdk_pango_renderer_get_default
gdk_pango_renderer_get_type
gdk_pango_renderer_get_type G_GNUC_CONST
gdk_pango_renderer_new
gdk_pango_renderer_set_drawable
gdk_pango_renderer_set_gc
......@@ -329,7 +329,7 @@ gdk_pixmap_create_from_xpm
gdk_pixmap_create_from_xpm_d
gdk_pixmap_foreign_new
gdk_pixmap_foreign_new_for_display
gdk_pixmap_get_type
gdk_pixmap_get_type G_GNUC_CONST
gdk_pixmap_lookup
gdk_pixmap_lookup_for_display
gdk_pixmap_new
......@@ -381,7 +381,7 @@ gdk_rgb_init
gdk_rgb_set_install
gdk_rgb_set_min_colors
gdk_rgb_set_verbose
gdk_rgb_xpixel_from_rgb
gdk_rgb_xpixel_from_rgb G_GNUC_CONST
gdk_screen_broadcast_client_message
gdk_screen_get_default
gdk_screen_get_default_colormap
......@@ -403,13 +403,13 @@ gdk_screen_get_toplevel_windows
gdk_screen_get_type
gdk_screen_get_width
gdk_screen_get_width_mm
gdk_screen_height
gdk_screen_height_mm
gdk_screen_height G_GNUC_CONST
gdk_screen_height_mm G_GNUC_CONST
gdk_screen_list_visuals
gdk_screen_make_display_name
gdk_screen_set_default_colormap
gdk_screen_width
gdk_screen_width_mm
gdk_screen_width G_GNUC_CONST
gdk_screen_width_mm G_GNUC_CONST
gdk_scroll_direction_get_type
gdk_selection_convert
gdk_selection_owner_get
......@@ -459,7 +459,7 @@ gdk_threads_lock
gdk_threads_unlock
#endif
gdk_threads_set_lock_functions
gdk_unicode_to_keyval
gdk_unicode_to_keyval G_GNUC_CONST
gdk_utf8_to_compound_text
gdk_utf8_to_compound_text_for_display
gdk_utf8_to_string_target
......@@ -543,7 +543,7 @@ gdk_window_merge_child_shapes
gdk_window_move
gdk_window_move_resize
gdk_window_new
gdk_window_object_get_type
gdk_window_object_get_type G_GNUC_CONST
gdk_window_peek_children
gdk_window_process_all_updates
gdk_window_process_updates
......
......@@ -97,12 +97,23 @@ while (<>) {
next;
}
chop;
my $str = $_;
my @words;
my $attributes = "";
@words = split(/ /, $str);
$str = shift(@words);
chomp($str);
my $alias = "IA__".$str;
# Drop any Win32 specific .def file syntax, but keep attributes
foreach $word (@words) {
$attributes = "$attributes $word" unless $word eq "PRIVATE";
}
print <<EOF
extern __typeof ($str) $alias __attribute((visibility("hidden")));
extern __typeof ($str) $alias __attribute((visibility("hidden")))$attributes;
extern __typeof ($str) $str __attribute((alias("$alias"), visibility("default")));
\#define $str $alias
......
......@@ -71,7 +71,7 @@ uninstall-ms-lib:
endif
gtk.def: gtk.symbols
(echo -e EXPORTS; cpp -P -DINCLUDE_VARIABLES -DG_OS_WIN32 $(srcdir)/gtk.symbols | sed -e '/^$$/d' -e 's/^/ /') > gtk.def
(echo -e EXPORTS; cpp -P -DINCLUDE_VARIABLES -DG_OS_WIN32 $(srcdir)/gtk.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g') > gtk.def
gtkalias.h: gtk.symbols
$(srcdir)/makegtkalias.pl < $(srcdir)/gtk.symbols > gtkalias.h
......
This diff is collapsed.
......@@ -101,7 +101,7 @@ struct _GtkAccelKey
/* -- Accelerator Groups --- */
GType gtk_accel_group_get_type (void);
GType gtk_accel_group_get_type (void) G_GNUC_CONST;
GtkAccelGroup* gtk_accel_group_new (void);
void gtk_accel_group_lock (GtkAccelGroup *accel_group);
void gtk_accel_group_unlock (GtkAccelGroup *accel_group);
......
......@@ -65,7 +65,7 @@ struct _GtkAccessibleClass
void (*_gtk_reserved4) (void);
};
GType gtk_accessible_get_type (void);
GType gtk_accessible_get_type (void) G_GNUC_CONST;
void gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible);
......
......@@ -80,7 +80,7 @@ struct _GtkActionClass
void (*_gtk_reserved4) (void);
};
GType gtk_action_get_type (void);
GType gtk_action_get_type (void) G_GNUC_CONST;
GtkAction *gtk_action_new (const gchar *name,
const gchar *label,
const gchar *tooltip,
......
......@@ -103,7 +103,7 @@ struct _GtkRadioActionEntry
gint value;
};
GType gtk_action_group_get_type (void);
GType gtk_action_group_get_type (void) G_GNUC_CONST;
GtkActionGroup *gtk_action_group_new (const gchar *name);
G_CONST_RETURN gchar *gtk_action_group_get_name (GtkActionGroup *action_group);
gboolean gtk_action_group_get_sensitive (GtkActionGroup *action_group);
......
......@@ -70,7 +70,7 @@ struct _GtkCellLayoutIface
gint position);
};
GType gtk_cell_layout_get_type (void);
GType gtk_cell_layout_get_type (void) G_GNUC_CONST;
void gtk_cell_layout_pack_start (GtkCellLayout *cell_layout,
GtkCellRenderer *cell,
gboolean expand);
......
......@@ -53,7 +53,7 @@ struct _GtkCellRendererComboClass
GtkCellRendererTextClass parent;
};
GType gtk_cell_renderer_combo_get_type (void);
GType gtk_cell_renderer_combo_get_type (void) G_GNUC_CONST;
GtkCellRenderer *gtk_cell_renderer_combo_new (void);
G_END_DECLS
......
......@@ -58,7 +58,7 @@ struct _GtkCellRendererPixbufClass
void (*_gtk_reserved4) (void);
};
GType gtk_cell_renderer_pixbuf_get_type (void);
GType gtk_cell_renderer_pixbuf_get_type (void) G_GNUC_CONST;
GtkCellRenderer *gtk_cell_renderer_pixbuf_new (void);
#ifdef __cplusplus
......
......@@ -61,7 +61,7 @@ struct _GtkCellRendererProgressClass
void (*_gtk_reserved4) (void);
};
GType gtk_cell_renderer_progress_get_type (void);
GType gtk_cell_renderer_progress_get_type (void) G_GNUC_CONST;
GtkCellRenderer* gtk_cell_renderer_progress_new (void);
G_END_DECLS
......
......@@ -90,7 +90,7 @@ struct _GtkCellRendererTextClass
void (*_gtk_reserved4) (void);
};
GType gtk_cell_renderer_text_get_type (void);
GType gtk_cell_renderer_text_get_type (void) G_GNUC_CONST;
GtkCellRenderer *gtk_cell_renderer_text_new (void);
void gtk_cell_renderer_text_set_fixed_height_from_font (GtkCellRendererText *renderer,
......
......@@ -61,7 +61,7 @@ struct _GtkCellRendererToggleClass
void (*_gtk_reserved4) (void);
};
GType gtk_cell_renderer_toggle_get_type (void);
GType gtk_cell_renderer_toggle_get_type (void) G_GNUC_CONST;
GtkCellRenderer *gtk_cell_renderer_toggle_new (void);
gboolean gtk_cell_renderer_toggle_get_radio (GtkCellRendererToggle *toggle);
......
......@@ -50,7 +50,7 @@ struct _GtkCellViewClass
GtkWidgetClass parent_class;
};
GType gtk_cell_view_get_type (void);
GType gtk_cell_view_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_cell_view_new (void);
GtkWidget *gtk_cell_view_new_with_text (const gchar *text);
GtkWidget *gtk_cell_view_new_with_markup (const gchar *markup);
......
......@@ -57,7 +57,7 @@ typedef void (* GtkClipboardGetFunc) (GtkClipboard *clipboard,
typedef void (* GtkClipboardClearFunc) (GtkClipboard *clipboard,
gpointer user_data_or_owner);
GType gtk_clipboard_get_type (void);
GType gtk_clipboard_get_type (void) G_GNUC_CONST;
GtkClipboard *gtk_clipboard_get_for_display (GdkDisplay *display,
GdkAtom selection);
......
......@@ -61,7 +61,7 @@ struct _GtkComboBoxClass
/* construction */
GType gtk_combo_box_get_type (void);
GType gtk_combo_box_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_combo_box_new (void);
GtkWidget *gtk_combo_box_new_with_model (GtkTreeModel *model);
......
......@@ -56,7 +56,7 @@ struct _GtkComboBoxEntryClass
};
GType gtk_combo_box_entry_get_type (void);
GType gtk_combo_box_entry_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_combo_box_entry_new (void);
GtkWidget *gtk_combo_box_entry_new_with_model (GtkTreeModel *model,
gint text_column);
......
......@@ -73,7 +73,7 @@ struct _GtkEntryCompletionClass
};
/* core */
GType gtk_entry_completion_get_type (void);
GType gtk_entry_completion_get_type (void) G_GNUC_CONST;
GtkEntryCompletion *gtk_entry_completion_new (void);
GtkWidget *gtk_entry_completion_get_entry (GtkEntryCompletion *completion);
......
......@@ -56,7 +56,7 @@ struct _GtkExpanderClass
void (* activate) (GtkExpander *expander);
};
GType gtk_expander_get_type (void);
GType gtk_expander_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_expander_new (const gchar *label);
GtkWidget *gtk_expander_new_with_mnemonic (const gchar *label);
......
......@@ -40,7 +40,7 @@ typedef enum
GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER
} GtkFileChooserAction;
GType gtk_file_chooser_get_type (void);
GType gtk_file_chooser_get_type (void) G_GNUC_CONST;
/* GError enumeration for GtkFileChooser */
......
......@@ -50,7 +50,7 @@ struct _GtkFileChooserDialog
GtkFileChooserDialogPrivate *priv;
};
GType gtk_file_chooser_dialog_get_type (void);
GType gtk_file_chooser_dialog_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_file_chooser_dialog_new (const gchar *title,
GtkWindow *parent,
GtkFileChooserAction action,
......
......@@ -50,7 +50,7 @@ struct _GtkFileChooserWidget
GtkFileChooserWidgetPrivate *priv;
};
GType gtk_file_chooser_widget_get_type (void);
GType gtk_file_chooser_widget_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_file_chooser_widget_new (GtkFileChooserAction action);
GtkWidget *gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction action,
const gchar *backend);
......
......@@ -52,7 +52,7 @@ struct _GtkFileFilterInfo
const gchar *mime_type;
};
GType gtk_file_filter_get_type (void);
GType gtk_file_filter_get_type (void) G_GNUC_CONST;
GtkFileFilter * gtk_file_filter_new (void);
void gtk_file_filter_set_name (GtkFileFilter *filter,
......
......@@ -79,7 +79,7 @@ GQuark gtk_file_system_error_quark (void);
*/
#define GTK_TYPE_FILE_INFO (gtk_file_info_get_type ())
GType gtk_file_info_get_type (void);
GType gtk_file_info_get_type (void) G_GNUC_CONST;
GtkFileInfo *gtk_file_info_new (void);
GtkFileInfo *gtk_file_info_copy (GtkFileInfo *info);
......@@ -201,7 +201,7 @@ struct _GtkFileSystemIface
void (*bookmarks_changed) (GtkFileSystem *file_system);
};
GType gtk_file_system_get_type (void);
GType gtk_file_system_get_type (void) G_GNUC_CONST;
GSList * gtk_file_system_list_volumes (GtkFileSystem *file_system);
......@@ -313,7 +313,7 @@ struct _GtkFileFolderIface
void (*finished_loading) (GtkFileFolder *folder);
};
GType gtk_file_folder_get_type (void);
GType gtk_file_folder_get_type (void) G_GNUC_CONST;
gboolean gtk_file_folder_list_children (GtkFileFolder *folder,
GSList **children,
GError **error);
......@@ -327,7 +327,7 @@ gboolean gtk_file_folder_is_finished_loading (GtkFileFolder *folder);
/* GtkFilePath */
#define GTK_TYPE_FILE_PATH (gtk_file_path_get_type ())
GType gtk_file_path_get_type (void);
GType gtk_file_path_get_type (void) G_GNUC_CONST;
#ifdef __GNUC__
#define gtk_file_path_new_dup(str) \
({ const gchar *__s = (str); (GtkFilePath *)g_strdup(__s); })
......
......@@ -33,7 +33,7 @@ G_BEGIN_DECLS
typedef struct _GtkFileSystemUnix GtkFileSystemUnix;
GtkFileSystem *gtk_file_system_unix_new (void);
GType gtk_file_system_unix_get_type (void);
GType gtk_file_system_unix_get_type (void) G_GNUC_CONST;
G_END_DECLS
......