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.
This commit is contained in:
Matthias Clasen 2004-11-23 20:02:15 +00:00 committed by Matthias Clasen
parent eeb0f9bcd3
commit b69987f217
54 changed files with 562 additions and 261 deletions

View File

@ -1,3 +1,73 @@
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

View File

@ -1,3 +1,73 @@
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

View File

@ -1,3 +1,73 @@
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

View File

@ -1,3 +1,73 @@
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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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);

View File

@ -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);

View File

@ -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,

View File

@ -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);

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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 */

View File

@ -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,

View File

@ -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);

View File

@ -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,

View File

@ -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); })

View File

@ -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

View File

@ -33,7 +33,7 @@ G_BEGIN_DECLS
typedef struct _GtkFileSystemWin32 GtkFileSystemWin32;
GtkFileSystem *gtk_file_system_win32_new (void);
GType gtk_file_system_win32_get_type (void);
GType gtk_file_system_win32_get_type (void) G_GNUC_CONST;
G_END_DECLS

View File

@ -63,7 +63,7 @@ struct _GtkIconFactoryClass
void (*_gtk_reserved4) (void);
};
GType gtk_icon_factory_get_type (void);
GType gtk_icon_factory_get_type (void) G_GNUC_CONST;
GtkIconFactory* gtk_icon_factory_new (void);
void gtk_icon_factory_add (GtkIconFactory *factory,
const gchar *stock_id,
@ -108,7 +108,7 @@ G_CONST_RETURN gchar* gtk_icon_size_get_name (GtkIconSize size);
/* Icon sets */
GType gtk_icon_set_get_type (void);
GType gtk_icon_set_get_type (void) G_GNUC_CONST;
GtkIconSet* gtk_icon_set_new (void);
GtkIconSet* gtk_icon_set_new_from_pixbuf (GdkPixbuf *pixbuf);
@ -135,7 +135,7 @@ void gtk_icon_set_get_sizes (GtkIconSet *icon_set,
GtkIconSize **sizes,
gint *n_sizes);
GType gtk_icon_source_get_type (void);
GType gtk_icon_source_get_type (void) G_GNUC_CONST;
GtkIconSource* gtk_icon_source_new (void);
GtkIconSource* gtk_icon_source_copy (const GtkIconSource *source);
void gtk_icon_source_free (GtkIconSource *source);

View File

@ -90,7 +90,7 @@ typedef enum {
GTK_ICON_THEME_FAILED
} GtkIconThemeError;
GQuark gtk_icon_theme_error_quark (void) G_GNUC_CONST;
GQuark gtk_icon_theme_error_quark (void);
GType gtk_icon_theme_get_type (void) G_GNUC_CONST;
@ -138,7 +138,7 @@ void gtk_icon_theme_add_builtin_icon (const gchar *icon_name,
gint size,
GdkPixbuf *pixbuf);
GType gtk_icon_info_get_type (void);
GType gtk_icon_info_get_type (void) G_GNUC_CONST;
GtkIconInfo *gtk_icon_info_copy (GtkIconInfo *icon_info);
void gtk_icon_info_free (GtkIconInfo *icon_info);

View File

@ -69,7 +69,7 @@ struct _GtkIconViewClass
gboolean (* activate_cursor_item) (GtkIconView *icon_view);
};
GType gtk_icon_view_get_type (void);
GType gtk_icon_view_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_icon_view_new (void);
GtkWidget *gtk_icon_view_new_with_model (GtkTreeModel *model);

View File

@ -69,7 +69,7 @@ struct _GtkListStoreClass
};
GType gtk_list_store_get_type (void);
GType gtk_list_store_get_type (void) G_GNUC_CONST;
GtkListStore *gtk_list_store_new (gint n_columns,
...);
GtkListStore *gtk_list_store_newv (gint n_columns,

View File

@ -59,7 +59,7 @@ struct _GtkMenuToolButtonClass
void (*_gtk_reserved4) (void);
};
GType gtk_menu_tool_button_get_type (void);
GType gtk_menu_tool_button_get_type (void) G_GNUC_CONST;
GtkToolItem *gtk_menu_tool_button_new (GtkWidget *icon_widget,
const gchar *label);
GtkToolItem *gtk_menu_tool_button_new_from_stock (const gchar *stock_id);

View File

@ -83,7 +83,7 @@ struct _GtkMessageDialogClass
void (*_gtk_reserved4) (void);
};
GType gtk_message_dialog_get_type (void);
GType gtk_message_dialog_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_message_dialog_new (GtkWindow *parent,
GtkDialogFlags flags,

View File

@ -67,7 +67,7 @@ struct _GtkRadioActionClass
void (*_gtk_reserved4) (void);
};
GType gtk_radio_action_get_type (void);
GType gtk_radio_action_get_type (void) G_GNUC_CONST;
GtkRadioAction *gtk_radio_action_new (const gchar *name,
const gchar *label,
const gchar *tooltip,

View File

@ -176,7 +176,7 @@ gboolean _gtk_selection_notify (GtkWidget *widget,
gboolean _gtk_selection_property_notify (GtkWidget *widget,
GdkEventProperty *event);
GType gtk_selection_data_get_type (void);
GType gtk_selection_data_get_type (void) G_GNUC_CONST;
GtkSelectionData *gtk_selection_data_copy (GtkSelectionData *data);
void gtk_selection_data_free (GtkSelectionData *data);

View File

@ -69,7 +69,7 @@ struct _GtkSettingsValue
/* --- functions --- */
GType gtk_settings_get_type (void);
GType gtk_settings_get_type (void) G_GNUC_CONST;
#ifndef GDK_MULTIHEAD_SAFE
GtkSettings* gtk_settings_get_default (void);
#endif

View File

@ -85,7 +85,7 @@ GtkTextBuffer *gtk_text_iter_get_buffer (const GtkTextIter *iter);
GtkTextIter *gtk_text_iter_copy (const GtkTextIter *iter);
void gtk_text_iter_free (GtkTextIter *iter);
GType gtk_text_iter_get_type (void);
GType gtk_text_iter_get_type (void) G_GNUC_CONST;
/*
* Convert to different kinds of index

View File

@ -40,7 +40,7 @@ extern "C" {
#define GTK_THEME_ENGINE(theme_engine) (G_TYPE_CHECK_INSTANCE_CAST ((theme_engine), GTK_TYPE_THEME_ENGINE, GtkThemeEngine))
#define GTK_IS_THEME_ENGINE(theme_engine) (G_TYPE_CHECK_INSTANCE_TYPE ((theme_engine), GTK_TYPE_THEME_ENGINE))
GType gtk_theme_engine_get_type (void);
GType gtk_theme_engine_get_type (void) G_GNUC_CONST;
GtkThemeEngine *gtk_theme_engine_get (const gchar *name);
GtkRcStyle *gtk_theme_engine_create_rc_style (GtkThemeEngine *engine);

View File

@ -67,7 +67,7 @@ struct _GtkToggleActionClass
void (*_gtk_reserved4) (void);
};
GType gtk_toggle_action_get_type (void);
GType gtk_toggle_action_get_type (void) G_GNUC_CONST;
GtkToggleAction *gtk_toggle_action_new (const gchar *name,
const gchar *label,
const gchar *tooltip,

View File

@ -62,7 +62,7 @@ struct _GtkToolButtonClass
void (* _gtk_reserved4) (void);
};
GType gtk_tool_button_get_type (void);
GType gtk_tool_button_get_type (void) G_GNUC_CONST;
GtkToolItem *gtk_tool_button_new (GtkWidget *icon_widget,
const gchar *label);
GtkToolItem *gtk_tool_button_new_from_stock (const gchar *stock_id);

View File

@ -67,7 +67,7 @@ struct _GtkToolItemClass
void (* _gtk_reserved4) (void);
};
GType gtk_tool_item_get_type (void);
GType gtk_tool_item_get_type (void) G_GNUC_CONST;
GtkToolItem *gtk_tool_item_new (void);
void gtk_tool_item_set_homogeneous (GtkToolItem *tool_item,

View File

@ -132,7 +132,7 @@ gint gtk_tree_path_get_depth (GtkTreePath *path);
gint *gtk_tree_path_get_indices (GtkTreePath *path);
void gtk_tree_path_free (GtkTreePath *path);
GtkTreePath *gtk_tree_path_copy (const GtkTreePath *path);
GType gtk_tree_path_get_type (void);
GType gtk_tree_path_get_type (void) G_GNUC_CONST;
gint gtk_tree_path_compare (const GtkTreePath *a,
const GtkTreePath *b);
void gtk_tree_path_next (GtkTreePath *path);
@ -154,7 +154,7 @@ gboolean gtk_tree_path_is_descendant (GtkTreePath *path,
* want to call gtk_tree_row_reference_new.
*/
GType gtk_tree_row_reference_get_type (void);
GType gtk_tree_row_reference_get_type (void) G_GNUC_CONST;
GtkTreeRowReference *gtk_tree_row_reference_new (GtkTreeModel *model,
GtkTreePath *path);
GtkTreeRowReference *gtk_tree_row_reference_new_proxy (GObject *proxy,
@ -178,7 +178,7 @@ void gtk_tree_row_reference_reordered (GObject *proxy,
/* GtkTreeIter operations */
GtkTreeIter * gtk_tree_iter_copy (GtkTreeIter *iter);
void gtk_tree_iter_free (GtkTreeIter *iter);
GType gtk_tree_iter_get_type (void);
GType gtk_tree_iter_get_type (void) G_GNUC_CONST;
GType gtk_tree_model_get_type (void) G_GNUC_CONST;
GtkTreeModelFlags gtk_tree_model_get_flags (GtkTreeModel *tree_model);

View File

@ -65,7 +65,7 @@ struct _GtkTreeModelFilterClass
};
/* base */
GType gtk_tree_model_filter_get_type (void);
GType gtk_tree_model_filter_get_type (void) G_GNUC_CONST;
GtkTreeModel *gtk_tree_model_filter_new (GtkTreeModel *child_model,
GtkTreePath *root);
void gtk_tree_model_filter_set_visible_func (GtkTreeModelFilter *filter,

View File

@ -71,7 +71,7 @@ struct _GtkTreeSelectionClass
};
GType gtk_tree_selection_get_type (void);
GType gtk_tree_selection_get_type (void) G_GNUC_CONST;
void gtk_tree_selection_set_mode (GtkTreeSelection *selection,
GtkSelectionMode type);

View File

@ -68,7 +68,7 @@ struct _GtkTreeStoreClass
};
GType gtk_tree_store_get_type (void);
GType gtk_tree_store_get_type (void) G_GNUC_CONST;
GtkTreeStore *gtk_tree_store_new (gint n_columns,
...);
GtkTreeStore *gtk_tree_store_newv (gint n_columns,

View File

@ -130,7 +130,7 @@ typedef gboolean (*GtkTreeViewRowSeparatorFunc) (GtkTreeModel *model,
/* Creators */
GType gtk_tree_view_get_type (void);
GType gtk_tree_view_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_tree_view_new (void);
GtkWidget *gtk_tree_view_new_with_model (GtkTreeModel *model);

View File

@ -120,7 +120,7 @@ struct _GtkTreeViewColumnClass
void (*_gtk_reserved4) (void);
};
GType gtk_tree_view_column_get_type (void);
GType gtk_tree_view_column_get_type (void) G_GNUC_CONST;
GtkTreeViewColumn *gtk_tree_view_column_new (void);
GtkTreeViewColumn *gtk_tree_view_column_new_with_attributes (const gchar *title,
GtkCellRenderer *cell,

View File

@ -98,7 +98,7 @@ typedef enum {
GTK_UI_MANAGER_ACCELERATOR = 1 << 8
} GtkUIManagerItemType;
GType gtk_ui_manager_get_type (void);
GType gtk_ui_manager_get_type (void) G_GNUC_CONST;
GtkUIManager *gtk_ui_manager_new (void);
void gtk_ui_manager_set_add_tearoffs (GtkUIManager *self,
gboolean add_tearoffs);

View File

@ -103,13 +103,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