]> Pileus Git - ~andy/gtk/commitdiff
Mark as const.
authorMatthias Clasen <mclasen@redhat.com>
Sun, 28 Nov 2004 06:45:52 +0000 (06:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 28 Nov 2004 06:45:52 +0000 (06:45 +0000)
2004-11-28  Matthias Clasen  <mclasen@redhat.com>

* gdk/gdkvisual.h (gdk_visual_get_type):
* gdk/gdkscreen.h (gdk_screen_get_type):
* gdk/gdkinput.h (gdk_device_get_type):
* gdk/gdk.h (gdk_rectangle_get_type):
* gdk/gdkfont.h (gdk_font_get_type):
* gdk/gdkevents.h (gdk_event_get_type):
* gdk/gdkdrawable.h (gdk_drawable_get_type):
* gdk/gdkdisplay.h (gdk_display_get_type):
* gdk/gdkcursor.h (gdk_cursor_get_type):
* gdk/gdkcolor.h (gdk_color_get_type): Mark as const.

* gdk/gdk.symbols:
* gdk/Makefile.am (stamp-gdkenumtypes.h): Mark get_type() functions
generated by glib-mkenums as const.

16 files changed:
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/Makefile.am
gdk/gdk.h
gdk/gdk.symbols
gdk/gdkcolor.h
gdk/gdkcursor.h
gdk/gdkdisplay.h
gdk/gdkdrawable.h
gdk/gdkevents.h
gdk/gdkfont.h
gdk/gdkinput.h
gdk/gdkscreen.h
gdk/gdkvisual.h

index 2be3dcbc6a775b2bfbe035f9cdd1e9b3830d1799..70198a3e85cc9ac1f84ca13c9b0a914f9fdfa35f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 2004-11-28  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk/gdkvisual.h (gdk_visual_get_type): 
+       * gdk/gdkscreen.h (gdk_screen_get_type): 
+       * gdk/gdkinput.h (gdk_device_get_type): 
+       * gdk/gdk.h (gdk_rectangle_get_type): 
+       * gdk/gdkfont.h (gdk_font_get_type): 
+       * gdk/gdkevents.h (gdk_event_get_type): 
+       * gdk/gdkdrawable.h (gdk_drawable_get_type): 
+       * gdk/gdkdisplay.h (gdk_display_get_type): 
+       * gdk/gdkcursor.h (gdk_cursor_get_type): 
+       * gdk/gdkcolor.h (gdk_color_get_type): Mark as const.
+
+       * gdk/gdk.symbols: 
+       * gdk/Makefile.am (stamp-gdkenumtypes.h): Mark get_type() functions
+       generated by glib-mkenums as const.
+
        * gtk/gtktextview.c (gtk_text_view_move_iter_by_lines): Return
        a boolean indicating whether we could do the requested move.
        (gtk_text_view_move_cursor_internal): For GTK_MOVEMENT_DISPLAY_LINES,
index 2be3dcbc6a775b2bfbe035f9cdd1e9b3830d1799..70198a3e85cc9ac1f84ca13c9b0a914f9fdfa35f 100644 (file)
@@ -1,5 +1,20 @@
 2004-11-28  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk/gdkvisual.h (gdk_visual_get_type): 
+       * gdk/gdkscreen.h (gdk_screen_get_type): 
+       * gdk/gdkinput.h (gdk_device_get_type): 
+       * gdk/gdk.h (gdk_rectangle_get_type): 
+       * gdk/gdkfont.h (gdk_font_get_type): 
+       * gdk/gdkevents.h (gdk_event_get_type): 
+       * gdk/gdkdrawable.h (gdk_drawable_get_type): 
+       * gdk/gdkdisplay.h (gdk_display_get_type): 
+       * gdk/gdkcursor.h (gdk_cursor_get_type): 
+       * gdk/gdkcolor.h (gdk_color_get_type): Mark as const.
+
+       * gdk/gdk.symbols: 
+       * gdk/Makefile.am (stamp-gdkenumtypes.h): Mark get_type() functions
+       generated by glib-mkenums as const.
+
        * gtk/gtktextview.c (gtk_text_view_move_iter_by_lines): Return
        a boolean indicating whether we could do the requested move.
        (gtk_text_view_move_cursor_internal): For GTK_MOVEMENT_DISPLAY_LINES,
index 2be3dcbc6a775b2bfbe035f9cdd1e9b3830d1799..70198a3e85cc9ac1f84ca13c9b0a914f9fdfa35f 100644 (file)
@@ -1,5 +1,20 @@
 2004-11-28  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk/gdkvisual.h (gdk_visual_get_type): 
+       * gdk/gdkscreen.h (gdk_screen_get_type): 
+       * gdk/gdkinput.h (gdk_device_get_type): 
+       * gdk/gdk.h (gdk_rectangle_get_type): 
+       * gdk/gdkfont.h (gdk_font_get_type): 
+       * gdk/gdkevents.h (gdk_event_get_type): 
+       * gdk/gdkdrawable.h (gdk_drawable_get_type): 
+       * gdk/gdkdisplay.h (gdk_display_get_type): 
+       * gdk/gdkcursor.h (gdk_cursor_get_type): 
+       * gdk/gdkcolor.h (gdk_color_get_type): Mark as const.
+
+       * gdk/gdk.symbols: 
+       * gdk/Makefile.am (stamp-gdkenumtypes.h): Mark get_type() functions
+       generated by glib-mkenums as const.
+
        * gtk/gtktextview.c (gtk_text_view_move_iter_by_lines): Return
        a boolean indicating whether we could do the requested move.
        (gtk_text_view_move_cursor_internal): For GTK_MOVEMENT_DISPLAY_LINES,
index 2be3dcbc6a775b2bfbe035f9cdd1e9b3830d1799..70198a3e85cc9ac1f84ca13c9b0a914f9fdfa35f 100644 (file)
@@ -1,5 +1,20 @@
 2004-11-28  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk/gdkvisual.h (gdk_visual_get_type): 
+       * gdk/gdkscreen.h (gdk_screen_get_type): 
+       * gdk/gdkinput.h (gdk_device_get_type): 
+       * gdk/gdk.h (gdk_rectangle_get_type): 
+       * gdk/gdkfont.h (gdk_font_get_type): 
+       * gdk/gdkevents.h (gdk_event_get_type): 
+       * gdk/gdkdrawable.h (gdk_drawable_get_type): 
+       * gdk/gdkdisplay.h (gdk_display_get_type): 
+       * gdk/gdkcursor.h (gdk_cursor_get_type): 
+       * gdk/gdkcolor.h (gdk_color_get_type): Mark as const.
+
+       * gdk/gdk.symbols: 
+       * gdk/Makefile.am (stamp-gdkenumtypes.h): Mark get_type() functions
+       generated by glib-mkenums as const.
+
        * gtk/gtktextview.c (gtk_text_view_move_iter_by_lines): Return
        a boolean indicating whether we could do the requested move.
        (gtk_text_view_move_cursor_internal): For GTK_MOVEMENT_DISPLAY_LINES,
index e43ff281e87aec352d82f5ca2d371d9d5124a620..8518c1e94b1955eb0603772a35916268f7d16a6b 100644 (file)
@@ -227,7 +227,7 @@ stamp-gdkenumtypes.h: @REBUILD@ $(gdk_public_h_sources) Makefile
        ( cd $(srcdir) && glib-mkenums \
                        --fhead "#ifndef __GDK_ENUM_TYPES_H__\n#define __GDK_ENUM_TYPES_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 GDK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
+                       --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define GDK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
                        --ftail "G_END_DECLS\n\n#endif /* __GDK_ENUM_TYPES_H__ */" \
                $(gdk_public_h_sources) ) >> xgen-geth \
        && (cmp -s xgen-geth gdkenumtypes.h || cp xgen-geth gdkenumtypes.h ) \
index 462d74940e93971848dee2bdf663f21013ca77c1..bbc1967dfc81e6a9d2b0fdd31e91018b1016eb2a 100644 (file)
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -153,7 +153,7 @@ void     gdk_rectangle_union     (GdkRectangle *src1,
                                  GdkRectangle *src2,
                                  GdkRectangle *dest);
 
-GType gdk_rectangle_get_type (void);
+GType gdk_rectangle_get_type (void) G_GNUC_CONST;
 
 #define GDK_TYPE_RECTANGLE (gdk_rectangle_get_type ())
 
index eb8b8005a5ea37249c7627ac4e671a0cb452512c..cb579f3efe53ec9e382fd4c45fb91f12f3606e3b 100644 (file)
@@ -2,11 +2,11 @@ gdk_add_client_message_filter
 gdk_add_option_entries_libgtk_only
 gdk_atom_intern
 gdk_atom_name
-gdk_axis_use_get_type
+gdk_axis_use_get_type G_GNUC_CONST
 gdk_beep
 gdk_bitmap_create_from_data
-gdk_byte_order_get_type
-gdk_cap_style_get_type
+gdk_byte_order_get_type G_GNUC_CONST
+gdk_cap_style_get_type G_GNUC_CONST
 gdk_char_height
 gdk_char_measure
 gdk_char_width
@@ -17,7 +17,7 @@ gdk_color_change
 gdk_color_copy
 gdk_color_equal
 gdk_color_free
-gdk_color_get_type
+gdk_color_get_type G_GNUC_CONST
 gdk_color_hash
 gdk_colormap_alloc_color
 gdk_colormap_alloc_colors
@@ -37,22 +37,22 @@ gdk_colors_alloc
 gdk_colors_free
 gdk_colors_store
 gdk_color_white
-gdk_crossing_mode_get_type
+gdk_crossing_mode_get_type G_GNUC_CONST
 gdk_cursor_get_display
-gdk_cursor_get_type
+gdk_cursor_get_type G_GNUC_CONST
 gdk_cursor_new
 gdk_cursor_new_for_display
 gdk_cursor_new_from_pixbuf
 gdk_cursor_new_from_pixmap
 gdk_cursor_ref
-gdk_cursor_type_get_type
+gdk_cursor_type_get_type G_GNUC_CONST
 gdk_cursor_unref
 gdk_device_free_history
 gdk_device_get_axis
 gdk_device_get_core_pointer
 gdk_device_get_history
 gdk_device_get_state
-gdk_device_get_type
+gdk_device_get_type G_GNUC_CONST
 gdk_device_set_axis_use
 gdk_device_set_key
 gdk_device_set_mode
@@ -73,7 +73,7 @@ gdk_display_get_name
 gdk_display_get_n_screens
 gdk_display_get_pointer
 gdk_display_get_screen
-gdk_display_get_type
+gdk_display_get_type G_GNUC_CONST
 gdk_display_get_window_at_pointer
 gdk_display_keyboard_ungrab
 gdk_display_list_devices
@@ -99,7 +99,7 @@ gdk_display_supports_cursor_color
 gdk_display_supports_selection_notification
 gdk_display_sync
 gdk_drag_abort
-gdk_drag_action_get_type
+gdk_drag_action_get_type G_GNUC_CONST
 gdk_drag_begin
 gdk_drag_context_get_type G_GNUC_CONST
 gdk_drag_context_new
@@ -113,7 +113,7 @@ gdk_drag_get_protocol
 gdk_drag_get_protocol_for_display
 gdk_drag_get_selection
 gdk_drag_motion
-gdk_drag_protocol_get_type
+gdk_drag_protocol_get_type G_GNUC_CONST
 gdk_drag_status
 gdk_drawable_copy_to_image
 gdk_drawable_get_clip_region
@@ -124,7 +124,7 @@ gdk_drawable_get_display
 gdk_drawable_get_image
 gdk_drawable_get_screen
 gdk_drawable_get_size
-gdk_drawable_get_type
+gdk_drawable_get_type G_GNUC_CONST
 gdk_drawable_get_visible_region
 gdk_drawable_get_visual
 gdk_drawable_ref
@@ -173,9 +173,9 @@ gdk_event_get_root_coords
 gdk_event_get_screen
 gdk_event_get_state
 gdk_event_get_time
-gdk_event_get_type
+gdk_event_get_type G_GNUC_CONST
 gdk_event_handler_set
-gdk_event_mask_get_type
+gdk_event_mask_get_type G_GNUC_CONST
 gdk_event_new
 gdk_event_peek
 gdk_event_put
@@ -184,29 +184,29 @@ gdk_event_send_client_message_for_display
 gdk_event_send_clientmessage_toall
 gdk_event_set_screen
 gdk_events_pending
-gdk_event_type_get_type
+gdk_event_type_get_type G_GNUC_CONST
 gdk_exit
-gdk_extension_mode_get_type
-gdk_fill_get_type
-gdk_fill_rule_get_type
-gdk_filter_return_get_type
+gdk_extension_mode_get_type G_GNUC_CONST
+gdk_fill_get_type G_GNUC_CONST
+gdk_fill_rule_get_type G_GNUC_CONST
+gdk_filter_return_get_type G_GNUC_CONST
 gdk_flush
 gdk_font_equal
 gdk_font_from_description
 gdk_font_from_description_for_display
 gdk_font_get_display
-gdk_font_get_type
+gdk_font_get_type G_GNUC_CONST
 gdk_font_id
 gdk_font_load
 gdk_font_load_for_display
 gdk_font_ref
 gdk_fontset_load
 gdk_fontset_load_for_display
-gdk_font_type_get_type
+gdk_font_type_get_type G_GNUC_CONST
 gdk_font_unref
 gdk_free_compound_text
 gdk_free_text_list
-gdk_function_get_type
+gdk_function_get_type G_GNUC_CONST
 gdk_gc_copy
 gdk_gc_get_colormap
 gdk_gc_get_screen
@@ -237,15 +237,15 @@ gdk_gc_set_tile
 gdk_gc_set_ts_origin
 gdk_gc_set_values
 gdk_gc_unref
-gdk_gc_values_mask_get_type
+gdk_gc_values_mask_get_type G_GNUC_CONST
 gdk_get_default_root_window
 gdk_get_display
 gdk_get_display_arg_name
 gdk_get_program_class
 gdk_get_show_events
 gdk_get_use_xshm
-gdk_grab_status_get_type
-gdk_gravity_get_type
+gdk_grab_status_get_type G_GNUC_CONST
+gdk_gravity_get_type G_GNUC_CONST
 gdk_image_get
 gdk_image_get_colormap
 gdk_image_get_pixel
@@ -255,18 +255,18 @@ gdk_image_new_bitmap
 gdk_image_put_pixel
 gdk_image_ref
 gdk_image_set_colormap
-gdk_image_type_get_type
+gdk_image_type_get_type G_GNUC_CONST
 gdk_image_unref
 gdk_init
 gdk_init_check
 gdk_input_add
 gdk_input_add_full
-gdk_input_condition_get_type
-gdk_input_mode_get_type
+gdk_input_condition_get_type G_GNUC_CONST
+gdk_input_mode_get_type G_GNUC_CONST
 gdk_input_remove
 gdk_input_set_extension_events
-gdk_input_source_get_type
-gdk_join_style_get_type
+gdk_input_source_get_type G_GNUC_CONST
+gdk_join_style_get_type G_GNUC_CONST
 gdk_keyboard_grab
 gdk_keyboard_grab_info_libgtk_only
 gdk_keyboard_ungrab
@@ -286,10 +286,10 @@ 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_line_style_get_type G_GNUC_CONST
 gdk_list_visuals
 gdk_mbstowcs
-gdk_modifier_type_get_type
+gdk_modifier_type_get_type G_GNUC_CONST
 #ifdef GDK_WINDOWING_X11
 gdk_net_wm_supports
 #endif
@@ -297,9 +297,9 @@ gdk_net_wm_supports
 gdk_net_wm_supports
 #endif
 gdk_notify_startup_complete
-gdk_notify_type_get_type
-gdk_overlap_type_get_type
-gdk_owner_change_get_type
+gdk_notify_type_get_type G_GNUC_CONST
+gdk_overlap_type_get_type G_GNUC_CONST
+gdk_owner_change_get_type G_GNUC_CONST
 gdk_pango_attr_embossed_new
 gdk_pango_attr_stipple_new
 gdk_pango_context_get
@@ -341,11 +341,11 @@ gdk_pre_parse_libgtk_only
 gdk_property_change
 gdk_property_delete
 gdk_property_get
-gdk_property_state_get_type
-gdk_prop_mode_get_type
+gdk_property_state_get_type G_GNUC_CONST
+gdk_prop_mode_get_type G_GNUC_CONST
 gdk_query_depths
 gdk_query_visual_types
-gdk_rectangle_get_type
+gdk_rectangle_get_type G_GNUC_CONST
 gdk_rectangle_intersect
 gdk_rectangle_union
 gdk_region_copy
@@ -371,7 +371,7 @@ gdk_rgb_cmap_free
 gdk_rgb_cmap_new
 gdk_rgb_colormap_ditherable
 gdk_rgb_ditherable
-gdk_rgb_dither_get_type
+gdk_rgb_dither_get_type G_GNUC_CONST
 gdk_rgb_find_color
 gdk_rgb_gc_set_background
 gdk_rgb_gc_set_foreground
@@ -400,7 +400,7 @@ gdk_screen_get_setting
 gdk_screen_get_system_colormap
 gdk_screen_get_system_visual
 gdk_screen_get_toplevel_windows
-gdk_screen_get_type
+gdk_screen_get_type G_GNUC_CONST
 gdk_screen_get_width
 gdk_screen_get_width_mm
 gdk_screen_height G_GNUC_CONST
@@ -410,7 +410,7 @@ gdk_screen_make_display_name
 gdk_screen_set_default_colormap
 gdk_screen_width G_GNUC_CONST
 gdk_screen_width_mm G_GNUC_CONST
-gdk_scroll_direction_get_type
+gdk_scroll_direction_get_type G_GNUC_CONST
 gdk_selection_convert
 gdk_selection_owner_get
 gdk_selection_owner_get_for_display
@@ -425,20 +425,20 @@ gdk_set_pointer_hooks
 gdk_set_program_class
 gdk_set_show_events
 gdk_set_sm_client_id
-gdk_setting_action_get_type
+gdk_setting_action_get_type G_GNUC_CONST
 gdk_setting_get
 gdk_set_use_xshm
 gdk_spawn_command_line_on_screen
 gdk_spawn_on_screen
 gdk_spawn_on_screen_with_pipes
-gdk_status_get_type
+gdk_status_get_type G_GNUC_CONST
 gdk_string_extents
 gdk_string_height
 gdk_string_measure
 gdk_string_to_compound_text
 gdk_string_to_compound_text_for_display
 gdk_string_width
-gdk_subwindow_mode_get_type
+gdk_subwindow_mode_get_type G_GNUC_CONST
 gdk_synthesize_window_state
 gdk_text_extents
 gdk_text_extents_wc
@@ -463,7 +463,7 @@ gdk_unicode_to_keyval G_GNUC_CONST
 gdk_utf8_to_compound_text
 gdk_utf8_to_compound_text_for_display
 gdk_utf8_to_string_target
-gdk_visibility_state_get_type
+gdk_visibility_state_get_type G_GNUC_CONST
 gdk_visual_get_best
 gdk_visual_get_best_depth
 gdk_visual_get_best_type
@@ -472,8 +472,8 @@ gdk_visual_get_best_with_depth
 gdk_visual_get_best_with_type
 gdk_visual_get_screen
 gdk_visual_get_system
-gdk_visual_get_type
-gdk_visual_type_get_type
+gdk_visual_get_type G_GNUC_CONST
+gdk_visual_type_get_type G_GNUC_CONST
 gdk_wcstombs
 #ifdef GDK_WINDOWING_WIN32
 gdk_win32_drawable_get_handle
@@ -483,12 +483,12 @@ gdk_win32_hdc_release
 #endif
 gdk_window_add_filter
 gdk_window_at_pointer
-gdk_window_attributes_type_get_type
+gdk_window_attributes_type_get_type G_GNUC_CONST
 gdk_window_begin_move_drag
 gdk_window_begin_paint_rect
 gdk_window_begin_paint_region
 gdk_window_begin_resize_drag
-gdk_window_class_get_type
+gdk_window_class_get_type G_GNUC_CONST
 gdk_window_clear
 gdk_window_clear_area
 gdk_window_clear_area_e
@@ -497,7 +497,7 @@ gdk_window_constrain_size
 gdk_window_deiconify
 gdk_window_destroy
 gdk_window_destroy_notify
-gdk_window_edge_get_type
+gdk_window_edge_get_type G_GNUC_CONST
 gdk_window_enable_synchronized_configure
 gdk_window_end_paint
 gdk_window_focus
@@ -525,10 +525,10 @@ gdk_window_get_update_area
 gdk_window_get_user_data
 gdk_window_get_window_type
 gdk_window_hide
-gdk_window_hints_get_type
+gdk_window_hints_get_type G_GNUC_CONST
 gdk_window_iconify
 #ifdef GDK_WINDOWING_X11
-gdk_window_impl_x11_get_type
+gdk_window_impl_x11_get_type G_GNUC_CONST
 #endif
 gdk_window_invalidate_maybe_recurse
 gdk_window_invalidate_rect
@@ -585,17 +585,17 @@ gdk_window_shape_combine_mask
 gdk_window_shape_combine_region
 gdk_window_show
 gdk_window_show_unraised
-gdk_window_state_get_type
+gdk_window_state_get_type G_GNUC_CONST
 gdk_window_stick
 gdk_window_thaw_updates
-gdk_window_type_get_type
-gdk_window_type_hint_get_type
+gdk_window_type_get_type G_GNUC_CONST
+gdk_window_type_hint_get_type G_GNUC_CONST
 gdk_window_unfullscreen
 gdk_window_unmaximize
 gdk_window_unstick
 gdk_window_withdraw
-gdk_wm_decoration_get_type
-gdk_wm_function_get_type
+gdk_wm_decoration_get_type G_GNUC_CONST
+gdk_wm_function_get_type G_GNUC_CONST
 #ifdef GDK_WINDOWING_X11
 gdk_x11_atom_to_xatom
 gdk_x11_atom_to_xatom_for_display
index d1835dd8c2971508797ad7aef82cc6a9d2327784..8754c3cd9f0044d21dc0f48b2b9735e47f0a0626 100644 (file)
@@ -109,7 +109,7 @@ guint     gdk_color_hash  (const GdkColor *colora);
 gboolean  gdk_color_equal (const GdkColor *colora,
                           const GdkColor *colorb);
 
-GType     gdk_color_get_type (void);
+GType     gdk_color_get_type (void) G_GNUC_CONST;
 
 /* The following functions are deprecated */
 #ifndef GDK_DISABLE_DEPRECATED
index f15db970f1f80f38d9d038afdd44488cfb90d467..b3e37da260c662d9642dd2a492ed2352fb9c6fce 100644 (file)
@@ -104,7 +104,7 @@ struct _GdkCursor
 /* Cursors
  */
 
-GType      gdk_cursor_get_type           (void);
+GType      gdk_cursor_get_type           (void) G_GNUC_CONST;
 
 GdkCursor* gdk_cursor_new_for_display   (GdkDisplay      *display,
                                          GdkCursorType    cursor_type);
index 219de1e537e79d4b9c023f2c925d4867e4629478..bfdd1674ce6e47296904380f483b06e4020b704e 100644 (file)
@@ -100,7 +100,7 @@ struct _GdkDisplayPointerHooks
                                    gint            *win_y);
 };
 
-GType       gdk_display_get_type (void);
+GType       gdk_display_get_type (void) G_GNUC_CONST;
 GdkDisplay *gdk_display_open                (const gchar *display_name);
 
 G_CONST_RETURN gchar * gdk_display_get_name (GdkDisplay *display);
@@ -131,6 +131,11 @@ void gdk_display_add_client_message_filter (GdkDisplay   *display,
                                            GdkAtom       message_type,
                                            GdkFilterFunc func,
                                            gpointer      data);
+void gdk_display_add_client_message_filter_full (GdkDisplay    *display,
+                                                GdkAtom        message_type,
+                                                GdkFilterFunc  func,
+                                                gpointer       data,
+                                                GDestroyNotify destroy);
 
 void gdk_display_set_double_click_time     (GdkDisplay   *display,
                                            guint         msec);
index cc2cf6a4bf4f09393a47dde4795455a521d48a70..3fb9ea846a96a3b8dda77473230ae36455455dbc 100644 (file)
@@ -189,7 +189,7 @@ struct _GdkTrapezoid
   double y1, x11, x21, y2, x12, x22;
 };
 
-GType           gdk_drawable_get_type     (void);
+GType           gdk_drawable_get_type     (void) G_GNUC_CONST;
 
 /* Manipulation of drawables
  */
index 000775dbf3f6f391f1eac0647e3aeb470ec97220..4095b362c7424784e7490c5e1d3cbd7d4955a5e0 100644 (file)
@@ -467,7 +467,7 @@ union _GdkEvent
   GdkEventSetting           setting;
 };
 
-GType     gdk_event_get_type            (void);
+GType     gdk_event_get_type            (void) G_GNUC_CONST;
 
 gboolean  gdk_events_pending           (void);
 GdkEvent* gdk_event_get                        (void);
index 32d66e9d63473bb84d92eab2d284b2915c0ff2f0..b4c1249b6351b3e75063c7f8ca25a794c024ed79 100644 (file)
@@ -29,7 +29,7 @@ struct _GdkFont
   gint descent;
 };
 
-GType    gdk_font_get_type  (void);
+GType    gdk_font_get_type  (void) G_GNUC_CONST;
 
 GdkFont* gdk_font_ref      (GdkFont        *font);
 void    gdk_font_unref     (GdkFont        *font);
index fb96976c9685c72b103271ef305b559a03fb7275..3ff2582b03e292242ca297872002c640d33437a7 100644 (file)
@@ -95,7 +95,7 @@ struct _GdkTimeCoord
   gdouble axes[GDK_MAX_TIMECOORD_AXES];
 };
 
-GType          gdk_device_get_type      (void);
+GType          gdk_device_get_type      (void) G_GNUC_CONST;
 
 #ifndef GDK_MULTIHEAD_SAFE
 /* Returns a list of GdkDevice * */      
index 87a7ae0974c7c4a8c9153f9de4172e291c098414..f527099f4447e05f090c590a40a8239b48b86bd8 100644 (file)
@@ -55,7 +55,7 @@ struct _GdkScreenClass
   void (*size_changed) (GdkScreen *screen);
 };
 
-GType        gdk_screen_get_type              (void);
+GType        gdk_screen_get_type              (void) G_GNUC_CONST;
 GdkColormap *gdk_screen_get_default_colormap  (GdkScreen   *screen);
 void         gdk_screen_set_default_colormap  (GdkScreen   *screen,
                                               GdkColormap *colormap);
index 0bca535568fdbcabe0dfda4c7c0de880795a2308..6e24097bc50668c5444e9d7f5c3fd4a587d4e6ef 100644 (file)
@@ -67,7 +67,7 @@ struct _GdkVisual
   gint blue_prec;
 };
 
-GType         gdk_visual_get_type            (void);
+GType         gdk_visual_get_type            (void) G_GNUC_CONST;
 
 #ifndef GDK_MULTIHEAD_SAFE
 gint         gdk_visual_get_best_depth      (void);