diff options
author | Tim Janik <timj@gtk.org> | 2001-10-13 05:52:14 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2001-10-13 05:52:14 +0000 |
commit | cf9f0b774198a0584ae067a308796ad308379edc (patch) | |
tree | f39ebf03956a2309b02a3165f07aae6af99995c7 | |
parent | 0511377235e775920eb0c3b0e743ad1c6eed8ebb (diff) | |
download | gtk+-cf9f0b774198a0584ae067a308796ad308379edc.tar.gz |
to compare pattern specs, use g_pattern_spec_equal() instead of direct
Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org>
* gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
specs, use g_pattern_spec_equal() instead of direct field accesses.
upon compressing two equal paths of the same type, the resulting
priority has to be the maximum.
* gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
GtkPathPriorityType enum and make it a macro.
44 files changed, 890 insertions, 117 deletions
@@ -1,3 +1,12 @@ +Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org> + + * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern + specs, use g_pattern_spec_equal() instead of direct field accesses. + upon compressing two equal paths of the same type, the resulting + priority has to be the maximum. + * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the + GtkPathPriorityType enum and make it a macro. + 2001-10-12 Matthias Clasen <matthiasc@poet.de> * gtk/gtkwidget.c: Fix some doc comments. diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index d033db2422..fb8cbaa031 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,12 @@ +Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org> + + * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern + specs, use g_pattern_spec_equal() instead of direct field accesses. + upon compressing two equal paths of the same type, the resulting + priority has to be the maximum. + * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the + GtkPathPriorityType enum and make it a macro. + 2001-10-12 Matthias Clasen <matthiasc@poet.de> * gtk/gtkwidget.c: Fix some doc comments. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d033db2422..fb8cbaa031 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,12 @@ +Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org> + + * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern + specs, use g_pattern_spec_equal() instead of direct field accesses. + upon compressing two equal paths of the same type, the resulting + priority has to be the maximum. + * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the + GtkPathPriorityType enum and make it a macro. + 2001-10-12 Matthias Clasen <matthiasc@poet.de> * gtk/gtkwidget.c: Fix some doc comments. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index d033db2422..fb8cbaa031 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,12 @@ +Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org> + + * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern + specs, use g_pattern_spec_equal() instead of direct field accesses. + upon compressing two equal paths of the same type, the resulting + priority has to be the maximum. + * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the + GtkPathPriorityType enum and make it a macro. + 2001-10-12 Matthias Clasen <matthiasc@poet.de> * gtk/gtkwidget.c: Fix some doc comments. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d033db2422..fb8cbaa031 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,12 @@ +Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org> + + * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern + specs, use g_pattern_spec_equal() instead of direct field accesses. + upon compressing two equal paths of the same type, the resulting + priority has to be the maximum. + * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the + GtkPathPriorityType enum and make it a macro. + 2001-10-12 Matthias Clasen <matthiasc@poet.de> * gtk/gtkwidget.c: Fix some doc comments. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d033db2422..fb8cbaa031 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,12 @@ +Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org> + + * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern + specs, use g_pattern_spec_equal() instead of direct field accesses. + upon compressing two equal paths of the same type, the resulting + priority has to be the maximum. + * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the + GtkPathPriorityType enum and make it a macro. + 2001-10-12 Matthias Clasen <matthiasc@poet.de> * gtk/gtkwidget.c: Fix some doc comments. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d033db2422..fb8cbaa031 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,12 @@ +Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org> + + * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern + specs, use g_pattern_spec_equal() instead of direct field accesses. + upon compressing two equal paths of the same type, the resulting + priority has to be the maximum. + * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the + GtkPathPriorityType enum and make it a macro. + 2001-10-12 Matthias Clasen <matthiasc@poet.de> * gtk/gtkwidget.c: Fix some doc comments. diff --git a/docs/reference/gdk-pixbuf/tmpl/animation.sgml b/docs/reference/gdk-pixbuf/tmpl/animation.sgml index a6d372c557..742169e7a3 100644 --- a/docs/reference/gdk-pixbuf/tmpl/animation.sgml +++ b/docs/reference/gdk-pixbuf/tmpl/animation.sgml @@ -20,30 +20,11 @@ Animated images. #GdkPixbufLoader </para> -<!-- ##### ENUM GdkPixbufFrameAction ##### --> -<para> - -</para> - -@GDK_PIXBUF_FRAME_RETAIN: -@GDK_PIXBUF_FRAME_DISPOSE: -@GDK_PIXBUF_FRAME_REVERT: - <!-- ##### STRUCT GdkPixbufFrame ##### --> <para> </para> -@pixbuf: -@x_offset: -@y_offset: -@delay_time: -@elapsed: -@action: -@need_recomposite: -@bg_transparent: -@composited: -@revert: <!-- ##### STRUCT GdkPixbufAnimation ##### --> <para> @@ -51,6 +32,12 @@ Animated images. </para> +<!-- ##### STRUCT GdkPixbufAnimationIter ##### --> +<para> + +</para> + + <!-- ##### FUNCTION gdk_pixbuf_animation_new_from_file ##### --> <para> @@ -96,3 +83,68 @@ Animated images. @Returns: +<!-- ##### FUNCTION gdk_pixbuf_animation_get_iter ##### --> +<para> + +</para> + +@animation: +@start_time: +@Returns: + + +<!-- ##### FUNCTION gdk_pixbuf_animation_is_static_image ##### --> +<para> + +</para> + +@animation: +@Returns: + + +<!-- ##### FUNCTION gdk_pixbuf_animation_get_static_image ##### --> +<para> + +</para> + +@animation: +@Returns: + + +<!-- ##### FUNCTION gdk_pixbuf_animation_iter_advance ##### --> +<para> + +</para> + +@iter: +@current_time: +@Returns: + + +<!-- ##### FUNCTION gdk_pixbuf_animation_iter_get_delay_time ##### --> +<para> + +</para> + +@iter: +@Returns: + + +<!-- ##### FUNCTION gdk_pixbuf_animation_iter_on_currently_loading_frame ##### --> +<para> + +</para> + +@iter: +@Returns: + + +<!-- ##### FUNCTION gdk_pixbuf_animation_iter_get_pixbuf ##### --> +<para> + +</para> + +@iter: +@Returns: + + diff --git a/docs/reference/gdk-pixbuf/tmpl/creating.sgml b/docs/reference/gdk-pixbuf/tmpl/creating.sgml index d9b541ba8b..0effa2aa12 100644 --- a/docs/reference/gdk-pixbuf/tmpl/creating.sgml +++ b/docs/reference/gdk-pixbuf/tmpl/creating.sgml @@ -82,16 +82,19 @@ Creating a pixbuf from image data that is already in memory. @Returns: -<!-- ##### FUNCTION gdk_pixbuf_new_from_stream ##### --> +<!-- ##### FUNCTION gdk_pixbuf_new_from_inline ##### --> <para> </para> -@stream_length: -@stream: -@copy_pixels: -@error: +@data_length: +@data: +@copy_pixels: +@error: @Returns: +<!-- # Unused Parameters # --> +@inline_pixbuf: +@length: <!-- ##### FUNCTION gdk_pixbuf_new_subpixbuf ##### --> diff --git a/docs/reference/gdk-pixbuf/tmpl/gdk-pixbuf-unused.sgml b/docs/reference/gdk-pixbuf/tmpl/gdk-pixbuf-unused.sgml index 099d29a515..2ac542e845 100644 --- a/docs/reference/gdk-pixbuf/tmpl/gdk-pixbuf-unused.sgml +++ b/docs/reference/gdk-pixbuf/tmpl/gdk-pixbuf-unused.sgml @@ -365,6 +365,15 @@ XlibRGB @obj: A GTK+ object. +<!-- ##### ENUM GdkPixbufFrameAction ##### --> +<para> + +</para> + +@GDK_PIXBUF_FRAME_RETAIN: +@GDK_PIXBUF_FRAME_DISPOSE: +@GDK_PIXBUF_FRAME_REVERT: + <!-- ##### USER_FUNCTION GdkPixbufLastUnref ##### --> <para> A function of this type can be used to override the default @@ -552,14 +561,14 @@ End: </para> -<!-- ##### FUNCTION gdk_pixbuf_new_from_inline ##### --> +<!-- ##### FUNCTION gdk_pixbuf_new_from_stream ##### --> <para> </para> -@inline_pixbuf: +@stream_length: +@stream: @copy_pixels: -@length: @error: @Returns: diff --git a/docs/reference/gdk-pixbuf/tmpl/gdk-pixbuf.sgml b/docs/reference/gdk-pixbuf/tmpl/gdk-pixbuf.sgml index efadae967b..e34195504f 100644 --- a/docs/reference/gdk-pixbuf/tmpl/gdk-pixbuf.sgml +++ b/docs/reference/gdk-pixbuf/tmpl/gdk-pixbuf.sgml @@ -152,3 +152,13 @@ End: --> +<!-- ##### FUNCTION gdk_pixbuf_get_option ##### --> +<para> + +</para> + +@pixbuf: +@key: +@Returns: + + diff --git a/docs/reference/gdk-pixbuf/tmpl/inline.sgml b/docs/reference/gdk-pixbuf/tmpl/inline.sgml index 9f14578a2a..4a2f3d952a 100644 --- a/docs/reference/gdk-pixbuf/tmpl/inline.sgml +++ b/docs/reference/gdk-pixbuf/tmpl/inline.sgml @@ -19,44 +19,41 @@ Functions for inlined pixbuf handling. </para> -@magic: -@length: -@pixdata_type: -@rowstride: -@width: -@height: -@pixel_data: - +@magic: +@length: +@pixdata_type: +@rowstride: +@width: +@height: +@pixel_data: <!-- ##### ENUM GdkPixdataType ##### --> <para> </para> -@GDK_PIXDATA_COLOR_TYPE_RGB: -@GDK_PIXDATA_COLOR_TYPE_RGBA: -@GDK_PIXDATA_COLOR_TYPE_MASK: -@GDK_PIXDATA_SAMPLE_WIDTH_8: -@GDK_PIXDATA_SAMPLE_WIDTH_MASK: -@GDK_PIXDATA_ENCODING_RAW: -@GDK_PIXDATA_ENCODING_RLE: -@GDK_PIXDATA_ENCODING_MASK: - +@GDK_PIXDATA_COLOR_TYPE_RGB: +@GDK_PIXDATA_COLOR_TYPE_RGBA: +@GDK_PIXDATA_COLOR_TYPE_MASK: +@GDK_PIXDATA_SAMPLE_WIDTH_8: +@GDK_PIXDATA_SAMPLE_WIDTH_MASK: +@GDK_PIXDATA_ENCODING_RAW: +@GDK_PIXDATA_ENCODING_RLE: +@GDK_PIXDATA_ENCODING_MASK: <!-- ##### ENUM GdkPixdataDumpType ##### --> <para> </para> -@GDK_PIXDATA_DUMP_PIXDATA_STREAM: -@GDK_PIXDATA_DUMP_PIXDATA_STRUCT: -@GDK_PIXDATA_DUMP_MACROS: -@GDK_PIXDATA_DUMP_GTYPES: -@GDK_PIXDATA_DUMP_CTYPES: -@GDK_PIXDATA_DUMP_STATIC: -@GDK_PIXDATA_DUMP_CONST: -@GDK_PIXDATA_DUMP_RLE_DECODER: - +@GDK_PIXDATA_DUMP_PIXDATA_STREAM: +@GDK_PIXDATA_DUMP_PIXDATA_STRUCT: +@GDK_PIXDATA_DUMP_MACROS: +@GDK_PIXDATA_DUMP_GTYPES: +@GDK_PIXDATA_DUMP_CTYPES: +@GDK_PIXDATA_DUMP_STATIC: +@GDK_PIXDATA_DUMP_CONST: +@GDK_PIXDATA_DUMP_RLE_DECODER: <!-- ##### MACRO GDK_PIXBUF_MAGIC_NUMBER ##### --> <para> @@ -64,21 +61,23 @@ Functions for inlined pixbuf handling. </para> + <!-- ##### MACRO GDK_PIXDATA_HEADER_LENGTH ##### --> <para> </para> + <!-- ##### FUNCTION gdk_pixdata_from_pixbuf ##### --> <para> </para> -@pixdata: -@pixbuf: -@use_rle: -@Returns: +@pixdata: +@pixbuf: +@use_rle: +@Returns: <!-- ##### FUNCTION gdk_pixbuf_from_pixdata ##### --> @@ -86,10 +85,10 @@ Functions for inlined pixbuf handling. </para> -@pixdata: -@copy_pixels: -@error: -@Returns: +@pixdata: +@copy_pixels: +@error: +@Returns: <!-- ##### FUNCTION gdk_pixdata_serialize ##### --> @@ -97,9 +96,9 @@ Functions for inlined pixbuf handling. </para> -@pixdata: -@stream_length_p: -@Returns: +@pixdata: +@stream_length_p: +@Returns: <!-- ##### FUNCTION gdk_pixdata_deserialize ##### --> @@ -107,11 +106,11 @@ Functions for inlined pixbuf handling. </para> -@pixdata: -@stream_length: -@stream: -@error: -@Returns: +@pixdata: +@stream_length: +@stream: +@error: +@Returns: <!-- ##### FUNCTION gdk_pixdata_to_csource ##### --> @@ -119,9 +118,9 @@ Functions for inlined pixbuf handling. </para> -@pixdata: -@name: -@dump_type: -@Returns: +@pixdata: +@name: +@dump_type: +@Returns: diff --git a/docs/reference/gdk-pixbuf/tmpl/util.sgml b/docs/reference/gdk-pixbuf/tmpl/util.sgml index 35726a967b..2c0404a7b8 100644 --- a/docs/reference/gdk-pixbuf/tmpl/util.sgml +++ b/docs/reference/gdk-pixbuf/tmpl/util.sgml @@ -61,3 +61,12 @@ End: @pixelate: +<!-- ##### FUNCTION gdk_pixbuf_fill ##### --> +<para> + +</para> + +@pixbuf: +@pixel: + + diff --git a/docs/reference/gdk/tmpl/gdk-unused.sgml b/docs/reference/gdk/tmpl/gdk-unused.sgml index 22fcbb1e9b..7311ec15d3 100644 --- a/docs/reference/gdk/tmpl/gdk-unused.sgml +++ b/docs/reference/gdk/tmpl/gdk-unused.sgml @@ -159,6 +159,12 @@ the device ID for the core pointer device. @obj: +<!-- ##### MACRO GDK_WINDOWING_NANOX ##### --> +<para> + +</para> + + <!-- ##### STRUCT GdkColorContext ##### --> <para> diff --git a/docs/reference/gdk/tmpl/general.sgml b/docs/reference/gdk/tmpl/general.sgml index 849da55ec7..92c429a57b 100644 --- a/docs/reference/gdk/tmpl/general.sgml +++ b/docs/reference/gdk/tmpl/general.sgml @@ -121,7 +121,7 @@ commandline option, the default value is the program name (determined with g_get_prgname()) with the first character converted to uppercase. </para> -@Returns: the program class. +@Returns: the program class. <!-- ##### FUNCTION gdk_set_program_class ##### --> @@ -381,13 +381,6 @@ Removes the X error trap installed with gdk_error_trap_push(). -<!-- ##### MACRO GDK_WINDOWING_NANOX ##### --> -<para> - -</para> - - - <!-- ##### MACRO GDK_WINDOWING_FB ##### --> <para> diff --git a/docs/reference/gdk/tmpl/keys.sgml b/docs/reference/gdk/tmpl/keys.sgml index 7ce60f16ab..2460fd93fa 100644 --- a/docs/reference/gdk/tmpl/keys.sgml +++ b/docs/reference/gdk/tmpl/keys.sgml @@ -176,6 +176,7 @@ Returns the direction of the keymap. @keymap: a #GdkKeymap or %NULL to use the default keymap. Returns: %PANGO_DIRECTION_LTR or %PANGO_DIRECTION_RTL. +@Returns: <!-- ##### FUNCTION gdk_keyval_name ##### --> diff --git a/docs/reference/gdk/tmpl/regions.sgml b/docs/reference/gdk/tmpl/regions.sgml index 0f3072fc66..3315405e7f 100644 --- a/docs/reference/gdk/tmpl/regions.sgml +++ b/docs/reference/gdk/tmpl/regions.sgml @@ -297,8 +297,7 @@ at the pixel with coordinates @x, @y and ending before @x + @width, @y. @x: x coordinate of the first pixel. @y: y coordinate of the first pixel. -@width: number of pixels in the span. - +@width: number of pixels in the span. <!-- ##### USER_FUNCTION GdkSpanFunc ##### --> <para> @@ -306,7 +305,7 @@ This defines the type of the function passed to gdk_region_spans_intersect_foreach(). </para> -@span: a #GdkSpan. +@span: a #GdkSpan. @data: the user data passed to gdk_region_spans_intersect_foreach(). @@ -316,7 +315,7 @@ Calls a function on each span in the intersection of @region and @spans. </para> -@region: a #GdkRegion. +@region: a #GdkRegion. @spans: an array of #GdkSpans. @n_spans: the length of @spans. @sorted: %TRUE if @spans is sorted wrt. the y coordinate. diff --git a/docs/reference/gdk/tmpl/x_interaction.sgml b/docs/reference/gdk/tmpl/x_interaction.sgml index 0d62769392..dd9425fcbb 100644 --- a/docs/reference/gdk/tmpl/x_interaction.sgml +++ b/docs/reference/gdk/tmpl/x_interaction.sgml @@ -152,6 +152,8 @@ X Window System Interaction </para> +@cursor: +<!-- # Unused Parameters # --> @win: @@ -160,6 +162,8 @@ X Window System Interaction </para> +@cursor: +<!-- # Unused Parameters # --> @win: diff --git a/docs/reference/gtk/tmpl/gtk-unused.sgml b/docs/reference/gtk/tmpl/gtk-unused.sgml index 3686e8751a..53236811d6 100644 --- a/docs/reference/gtk/tmpl/gtk-unused.sgml +++ b/docs/reference/gtk/tmpl/gtk-unused.sgml @@ -193,6 +193,26 @@ Functions to adapt C structures to native calling convention. Signal Marshallers +<!-- ##### SECTION ./tmpl/gtkpacker.sgml:Long_Description ##### --> +<para> + +</para> + + +<!-- ##### SECTION ./tmpl/gtkpacker.sgml:See_Also ##### --> +<para> + +</para> + + +<!-- ##### SECTION ./tmpl/gtkpacker.sgml:Short_Description ##### --> + + + +<!-- ##### SECTION ./tmpl/gtkpacker.sgml:Title ##### --> +GtkPacker + + <!-- ##### SECTION ./tmpl/gtkprivate.sgml:Title ##### --> Private Information @@ -450,6 +470,29 @@ The widget whose accelerators are to be shown by the #GtkAccelLabel. </para> +<!-- ##### ENUM GtkAnchorType ##### --> +<para> + +</para> + +@GTK_ANCHOR_CENTER: +@GTK_ANCHOR_NORTH: +@GTK_ANCHOR_NORTH_WEST: +@GTK_ANCHOR_NORTH_EAST: +@GTK_ANCHOR_SOUTH: +@GTK_ANCHOR_SOUTH_WEST: +@GTK_ANCHOR_SOUTH_EAST: +@GTK_ANCHOR_WEST: +@GTK_ANCHOR_EAST: +@GTK_ANCHOR_N: +@GTK_ANCHOR_NW: +@GTK_ANCHOR_NE: +@GTK_ANCHOR_S: +@GTK_ANCHOR_SW: +@GTK_ANCHOR_SE: +@GTK_ANCHOR_W: +@GTK_ANCHOR_E: + <!-- ##### USER_FUNCTION GtkArgGetFunc ##### --> <para> Define a function pointer. Deprecated. @@ -843,6 +886,20 @@ after other user handlers and the default handler. @arg2: @arg3: +<!-- ##### STRUCT GtkPacker ##### --> +<para> + +</para> + +@parent: +@children: +@spacing: +@default_border_width: +@default_pad_x: +@default_pad_y: +@default_i_pad_x: +@default_i_pad_y: + <!-- ##### ARG GtkPacker:default-border-width ##### --> <para> @@ -879,6 +936,31 @@ after other user handlers and the default handler. </para> +<!-- ##### STRUCT GtkPackerChild ##### --> +<para> + +</para> + +@widget: +@anchor: +@side: +@options: +@use_default: +@border_width: +@pad_x: +@pad_y: +@i_pad_x: +@i_pad_y: + +<!-- ##### ENUM GtkPackerOptions ##### --> +<para> + +</para> + +@GTK_PACK_EXPAND: +@GTK_FILL_X: +@GTK_FILL_Y: + <!-- ##### ARG GtkPaned:handle-size ##### --> <para> @@ -917,6 +999,16 @@ after other user handlers and the default handler. </para> +<!-- ##### ENUM GtkSideType ##### --> +<para> + +</para> + +@GTK_SIDE_TOP: +@GTK_SIDE_BOTTOM: +@GTK_SIDE_LEFT: +@GTK_SIDE_RIGHT: + <!-- ##### USER_FUNCTION GtkSignalDestroy ##### --> <para> A function which you can use to clean up when the @@ -2031,6 +2123,105 @@ Set an array of arguments. @args: the desired values, as an array of #GtkArgs (which contain the names, types, and values of the arguments). +<!-- ##### FUNCTION gtk_packer_add ##### --> +<para> + +</para> + +@packer: +@child: +@side: +@anchor: +@options: +@border_width: +@pad_x: +@pad_y: +@i_pad_x: +@i_pad_y: + +<!-- ##### FUNCTION gtk_packer_add_defaults ##### --> +<para> + +</para> + +@packer: +@child: +@side: +@anchor: +@options: + +<!-- ##### MACRO gtk_packer_configure ##### --> +<para> + +</para> + + +<!-- ##### FUNCTION gtk_packer_new ##### --> +<para> + +</para> + +@Returns: + +<!-- ##### FUNCTION gtk_packer_reorder_child ##### --> +<para> + +</para> + +@packer: +@child: +@position: + +<!-- ##### FUNCTION gtk_packer_set_child_packing ##### --> +<para> + +</para> + +@packer: +@child: +@side: +@anchor: +@options: +@border_width: +@pad_x: +@pad_y: +@i_pad_x: +@i_pad_y: + +<!-- ##### FUNCTION gtk_packer_set_default_border_width ##### --> +<para> + +</para> + +@packer: +@border: + +<!-- ##### FUNCTION gtk_packer_set_default_ipad ##### --> +<para> + +</para> + +@packer: +@i_pad_x: +@i_pad_y: + +<!-- ##### FUNCTION gtk_packer_set_default_pad ##### --> +<para> + +</para> + +@packer: +@pad_x: +@pad_y: + +<!-- ##### FUNCTION gtk_packer_set_spacing ##### --> +<para> + +</para> + +@packer: +@spacing: + <!-- ##### FUNCTION gtk_paned_compute_position ##### --> <para> Internal function used by #GtkHPaned and #GtkVPaned diff --git a/docs/reference/gtk/tmpl/gtkaccellabel.sgml b/docs/reference/gtk/tmpl/gtkaccellabel.sgml index 9c61f558e6..175148821c 100644 --- a/docs/reference/gtk/tmpl/gtkaccellabel.sgml +++ b/docs/reference/gtk/tmpl/gtkaccellabel.sgml @@ -94,6 +94,32 @@ Creates a new #GtkAccelLabel. @Returns: a new #GtkAccelLabel. +<!-- ##### FUNCTION gtk_accel_label_get_accel_object ##### --> +<para> + +</para> + +@accel_label: +@Returns: + + +<!-- ##### FUNCTION gtk_accel_label_set_accel_object ##### --> +<para> + +</para> + +@accel_label: +@accel_object: + + +<!-- ##### MACRO gtk_accel_label_get_accel_widget ##### --> +<para> + +</para> + +@accel_label: + + <!-- ##### MACRO gtk_accel_label_set_accel_widget ##### --> <para> Sets the widget whose accelerators are to be shown. diff --git a/docs/reference/gtk/tmpl/gtkadjustment.sgml b/docs/reference/gtk/tmpl/gtkadjustment.sgml index bef7149651..cb17699843 100644 --- a/docs/reference/gtk/tmpl/gtkadjustment.sgml +++ b/docs/reference/gtk/tmpl/gtkadjustment.sgml @@ -93,6 +93,15 @@ Creates a new #GtkAdjustment. @Returns: a new #GtkAdjustment. +<!-- ##### FUNCTION gtk_adjustment_get_value ##### --> +<para> + +</para> + +@adjustment: +@Returns: + + <!-- ##### FUNCTION gtk_adjustment_set_value ##### --> <para> Sets the #GtkAdjustment value. diff --git a/docs/reference/gtk/tmpl/gtkbbox.sgml b/docs/reference/gtk/tmpl/gtkbbox.sgml index c14c365513..38d13b2f76 100644 --- a/docs/reference/gtk/tmpl/gtkbbox.sgml +++ b/docs/reference/gtk/tmpl/gtkbbox.sgml @@ -153,6 +153,16 @@ box. @ipad_y: the vertical padding that should be used by each button in @widget. +<!-- ##### FUNCTION gtk_button_box_set_child_secondary ##### --> +<para> + +</para> + +@widget: +@child: +@is_secondary: + + <!-- ##### ARG GtkButtonBox:layout-style ##### --> <para> diff --git a/docs/reference/gtk/tmpl/gtkbox.sgml b/docs/reference/gtk/tmpl/gtkbox.sgml index eef0351f9a..01dfc126ce 100644 --- a/docs/reference/gtk/tmpl/gtkbox.sgml +++ b/docs/reference/gtk/tmpl/gtkbox.sgml @@ -274,6 +274,15 @@ values, %TRUE, %TRUE, and 0, respectively. @widget: the #GtkWidget to be added to @box. +<!-- ##### FUNCTION gtk_box_get_homogeneous ##### --> +<para> + +</para> + +@box: +@Returns: + + <!-- ##### FUNCTION gtk_box_set_homogeneous ##### --> <para>
Sets the <structfield>homogeneous</structfield> field of
@@ -286,6 +295,15 @@ given equal space in the box. %FALSE for variable allotments. +<!-- ##### FUNCTION gtk_box_get_spacing ##### --> +<para> + +</para> + +@box: +@Returns: + + <!-- ##### FUNCTION gtk_box_set_spacing ##### --> <para>
Sets the <structfield>spacing</structfield> field of #GtkBox-struct,
@@ -353,15 +371,6 @@ field in #GtkBoxChild-struct. in #GtkBoxChild-struct. -<!-- ##### FUNCTION gtk_box_get_spacing ##### --> -<para> - -</para> - -@box: -@Returns: - - <!-- ##### ARG GtkBox:spacing ##### --> <para>
the minimum amount of space to put between children. Refers to the
diff --git a/docs/reference/gtk/tmpl/gtkbutton.sgml b/docs/reference/gtk/tmpl/gtkbutton.sgml index b7609bf4b6..c2e2650bb8 100644 --- a/docs/reference/gtk/tmpl/gtkbutton.sgml +++ b/docs/reference/gtk/tmpl/gtkbutton.sgml @@ -125,6 +125,60 @@ Returns the current relief style of the given #GtkButton. @Returns: The current #GtkReliefStyle +<!-- ##### FUNCTION gtk_button_get_label ##### --> +<para> + +</para> + +@button: +@Returns: + + +<!-- ##### FUNCTION gtk_button_set_label ##### --> +<para> + +</para> + +@button: +@label: + + +<!-- ##### FUNCTION gtk_button_get_use_stock ##### --> +<para> + +</para> + +@button: +@Returns: + + +<!-- ##### FUNCTION gtk_button_set_use_stock ##### --> +<para> + +</para> + +@button: +@value: + + +<!-- ##### FUNCTION gtk_button_get_use_underline ##### --> +<para> + +</para> + +@button: +@Returns: + + +<!-- ##### FUNCTION gtk_button_set_use_underline ##### --> +<para> + +</para> + +@button: +@value: + + <!-- ##### SIGNAL GtkButton::activate ##### --> <para> diff --git a/docs/reference/gtk/tmpl/gtkcalendar.sgml b/docs/reference/gtk/tmpl/gtkcalendar.sgml index 2848833d6b..f744dd755f 100644 --- a/docs/reference/gtk/tmpl/gtkcalendar.sgml +++ b/docs/reference/gtk/tmpl/gtkcalendar.sgml @@ -156,7 +156,7 @@ Remove all visual markers. Sets display options (whether to display the heading and the month headings). </para> -@calendar: a #GtkCalendar. +@calendar: a #GtkCalendar. @flags: the display options to set. diff --git a/docs/reference/gtk/tmpl/gtkcellrenderertoggle.sgml b/docs/reference/gtk/tmpl/gtkcellrenderertoggle.sgml index eea61a367c..eebb132639 100644 --- a/docs/reference/gtk/tmpl/gtkcellrenderertoggle.sgml +++ b/docs/reference/gtk/tmpl/gtkcellrenderertoggle.sgml @@ -28,40 +28,40 @@ GtkCellRendererToggle @Returns: -<!-- ##### FUNCTION gtk_cell_renderer_toggle_set_radio ##### --> +<!-- ##### FUNCTION gtk_cell_renderer_toggle_get_radio ##### --> <para> </para> @toggle: -@radio: +@Returns: -<!-- ##### FUNCTION gtk_cell_renderer_toggle_get_active ##### --> +<!-- ##### FUNCTION gtk_cell_renderer_toggle_set_radio ##### --> <para> </para> @toggle: -@Returns: +@radio: -<!-- ##### FUNCTION gtk_cell_renderer_toggle_set_active ##### --> +<!-- ##### FUNCTION gtk_cell_renderer_toggle_get_active ##### --> <para> </para> @toggle: -@setting: +@Returns: -<!-- ##### FUNCTION gtk_cell_renderer_toggle_get_radio ##### --> +<!-- ##### FUNCTION gtk_cell_renderer_toggle_set_active ##### --> <para> </para> @toggle: -@Returns: +@setting: <!-- ##### SIGNAL GtkCellRendererToggle::toggled ##### --> diff --git a/docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml b/docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml index 3c9712b654..f4839373ef 100644 --- a/docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml +++ b/docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml @@ -58,6 +58,15 @@ Creates a new #GtkCheckMenuItem with a label. @Returns: a new #GtkCheckMenuItem. +<!-- ##### FUNCTION gtk_check_menu_item_new_with_mnemonic ##### --> +<para> + +</para> + +@label: +@Returns: + + <!-- ##### MACRO gtk_check_menu_item_set_state ##### --> <para> This macro is provided to preserve compatibility with older code. @@ -66,6 +75,15 @@ New code should use gtk_check_menu_item_set_active() function instead. +<!-- ##### FUNCTION gtk_check_menu_item_get_active ##### --> +<para> + +</para> + +@check_menu_item: +@Returns: + + <!-- ##### FUNCTION gtk_check_menu_item_set_active ##### --> <para> Sets the active state of the menu item's check box. diff --git a/docs/reference/gtk/tmpl/gtkcolorsel.sgml b/docs/reference/gtk/tmpl/gtkcolorsel.sgml index 77c737926b..4d82b08b60 100644 --- a/docs/reference/gtk/tmpl/gtkcolorsel.sgml +++ b/docs/reference/gtk/tmpl/gtkcolorsel.sgml @@ -215,6 +215,15 @@ time. @Returns: +<!-- ##### USER_FUNCTION GtkColorSelectionChangePaletteFunc ##### --> +<para> + +</para> + +@colors: +@n_colors: + + <!-- ##### FUNCTION gtk_color_selection_set_color ##### --> <para> Sets the color in the #GtkColorSelection. The widgets are updated diff --git a/docs/reference/gtk/tmpl/gtkcombo.sgml b/docs/reference/gtk/tmpl/gtkcombo.sgml index 0e115ea39c..b4510f4af7 100644 --- a/docs/reference/gtk/tmpl/gtkcombo.sgml +++ b/docs/reference/gtk/tmpl/gtkcombo.sgml @@ -217,3 +217,13 @@ instead. </para> +<!-- ##### ARG GtkCombo:allow-empty ##### --> +<para> + +</para> + +<!-- ##### ARG GtkCombo:value-in-list ##### --> +<para> + +</para> + diff --git a/docs/reference/gtk/tmpl/gtkcontainer.sgml b/docs/reference/gtk/tmpl/gtkcontainer.sgml index 664913b52c..9d7c4e253c 100644 --- a/docs/reference/gtk/tmpl/gtkcontainer.sgml +++ b/docs/reference/gtk/tmpl/gtkcontainer.sgml @@ -63,6 +63,26 @@ GtkContainer @widget: +<!-- ##### FUNCTION gtk_container_add_with_properties ##### --> +<para> + +</para> + +@container: +@widget: +@first_prop_name: +@Varargs: + + +<!-- ##### FUNCTION gtk_container_get_resize_mode ##### --> +<para> + +</para> + +@container: +@Returns: + + <!-- ##### FUNCTION gtk_container_set_resize_mode ##### --> <para> @@ -112,6 +132,15 @@ GtkContainer @container: +<!-- ##### FUNCTION gtk_container_get_children ##### --> +<para> + +</para> + +@container: +@Returns: + + <!-- ##### FUNCTION gtk_container_set_reallocate_redraws ##### --> <para> @@ -130,6 +159,15 @@ GtkContainer @child: +<!-- ##### FUNCTION gtk_container_get_focus_vadjustment ##### --> +<para> + +</para> + +@container: +@Returns: + + <!-- ##### FUNCTION gtk_container_set_focus_vadjustment ##### --> <para> @@ -139,6 +177,15 @@ GtkContainer @adjustment: +<!-- ##### FUNCTION gtk_container_get_focus_hadjustment ##### --> +<para> + +</para> + +@container: +@Returns: + + <!-- ##### FUNCTION gtk_container_set_focus_hadjustment ##### --> <para> @@ -165,6 +212,17 @@ GtkContainer @Returns: +<!-- ##### FUNCTION gtk_container_child_get ##### --> +<para> + +</para> + +@container: +@child: +@first_prop_name: +@Varargs: + + <!-- ##### FUNCTION gtk_container_child_set ##### --> <para> @@ -178,6 +236,50 @@ GtkContainer @first_arg_name: +<!-- ##### FUNCTION gtk_container_child_get_property ##### --> +<para> + +</para> + +@container: +@child: +@property_name: +@value: + + +<!-- ##### FUNCTION gtk_container_child_set_property ##### --> +<para> + +</para> + +@container: +@child: +@property_name: +@value: + + +<!-- ##### FUNCTION gtk_container_child_get_valist ##### --> +<para> + +</para> + +@container: +@child: +@first_property_name: +@var_args: + + +<!-- ##### FUNCTION gtk_container_child_set_valist ##### --> +<para> + +</para> + +@container: +@child: +@first_property_name: +@var_args: + + <!-- ##### FUNCTION gtk_container_forall ##### --> <para> @@ -188,6 +290,15 @@ GtkContainer @callback_data: +<!-- ##### FUNCTION gtk_container_get_border_width ##### --> +<para> + +</para> + +@container: +@Returns: + + <!-- ##### FUNCTION gtk_container_set_border_width ##### --> <para> @@ -207,6 +318,16 @@ GtkContainer @event: +<!-- ##### FUNCTION gtk_container_get_focus_chain ##### --> +<para> + +</para> + +@container: +@focusable_widgets: +@Returns: + + <!-- ##### FUNCTION gtk_container_set_focus_chain ##### --> <para> @@ -224,6 +345,36 @@ GtkContainer @container: +<!-- ##### FUNCTION gtk_container_class_find_child_property ##### --> +<para> + +</para> + +@cclass: +@property_name: +@Returns: + + +<!-- ##### FUNCTION gtk_container_class_install_child_property ##### --> +<para> + +</para> + +@cclass: +@property_id: +@pspec: + + +<!-- ##### FUNCTION gtk_container_class_list_child_properties ##### --> +<para> + +</para> + +@cclass: +@n_properties: +@Returns: + + <!-- ##### SIGNAL GtkContainer::add ##### --> <para> diff --git a/docs/reference/gtk/tmpl/gtkdnd.sgml b/docs/reference/gtk/tmpl/gtkdnd.sgml index fcf88848fc..f278e854af 100644 --- a/docs/reference/gtk/tmpl/gtkdnd.sgml +++ b/docs/reference/gtk/tmpl/gtkdnd.sgml @@ -285,6 +285,28 @@ gtk_drag_source_set() is used. @hot_y: +<!-- ##### FUNCTION gtk_drag_set_icon_pixbuf ##### --> +<para> + +</para> + +@context: +@pixbuf: +@hot_x: +@hot_y: + + +<!-- ##### FUNCTION gtk_drag_set_icon_stock ##### --> +<para> + +</para> + +@context: +@stock_id: +@hot_x: +@hot_y: + + <!-- ##### FUNCTION gtk_drag_set_icon_default ##### --> <para> </para> @@ -342,6 +364,24 @@ widget. The widget must have a window. @mask: +<!-- ##### FUNCTION gtk_drag_source_set_icon_pixbuf ##### --> +<para> + +</para> + +@widget: +@pixbuf: + + +<!-- ##### FUNCTION gtk_drag_source_set_icon_stock ##### --> +<para> + +</para> + +@widget: +@stock_id: + + <!-- ##### FUNCTION gtk_drag_source_unset ##### --> <para> Undo the effects of gtk_drag_source_set(). diff --git a/docs/reference/gtk/tmpl/gtkeditable.sgml b/docs/reference/gtk/tmpl/gtkeditable.sgml index 139918a78c..abe0814da8 100644 --- a/docs/reference/gtk/tmpl/gtkeditable.sgml +++ b/docs/reference/gtk/tmpl/gtkeditable.sgml @@ -113,8 +113,8 @@ Gets the current selection bounds, if there is a selection. </para> @editable: a #GtkEditable widget. -@start: location to store the starting position, or %NULL. -@end: location to store the end position, or %NULL. +@start: location to store the starting position, or %NULL. +@end: location to store the end position, or %NULL. @Returns: %TRUE if there is a selection. diff --git a/docs/reference/gtk/tmpl/gtkenums.sgml b/docs/reference/gtk/tmpl/gtkenums.sgml index 3c1b296a37..4d3f4dbf40 100644 --- a/docs/reference/gtk/tmpl/gtkenums.sgml +++ b/docs/reference/gtk/tmpl/gtkenums.sgml @@ -110,6 +110,16 @@ widget. @GTK_DIR_LEFT: @GTK_DIR_RIGHT: +<!-- ##### ENUM GtkExpanderStyle ##### --> +<para> + +</para> + +@GTK_EXPANDER_COLLAPSED: +@GTK_EXPANDER_SEMI_COLLAPSED: +@GTK_EXPANDER_SEMI_EXPANDED: +@GTK_EXPANDER_EXPANDED: + <!-- ##### ENUM GtkJustification ##### --> <para> Used for justifying the text inside a #GtkLabel widget. (See also @@ -185,7 +195,6 @@ Represents the packing location #GtkBox children. (See: #GtkVBox, @GTK_PATH_PRIO_THEME: @GTK_PATH_PRIO_RC: @GTK_PATH_PRIO_HIGHEST: -@GTK_PATH_PRIO_MASK: <!-- ##### ENUM GtkPathType ##### --> <para> diff --git a/docs/reference/gtk/tmpl/gtkradiobutton.sgml b/docs/reference/gtk/tmpl/gtkradiobutton.sgml index 198a8cff30..661271c5ab 100644 --- a/docs/reference/gtk/tmpl/gtkradiobutton.sgml +++ b/docs/reference/gtk/tmpl/gtkradiobutton.sgml @@ -155,6 +155,7 @@ Deprecated compatibility macro. Use gtk_radio_button_get_group() instead. </para> + <!-- ##### FUNCTION gtk_radio_button_set_group ##### --> <para> Sets a #GtkRadioButton's group. It should be noted that this does not change diff --git a/docs/reference/gtk/tmpl/gtkradiomenuitem.sgml b/docs/reference/gtk/tmpl/gtkradiomenuitem.sgml index 35ecd6c74d..2d04d30866 100644 --- a/docs/reference/gtk/tmpl/gtkradiomenuitem.sgml +++ b/docs/reference/gtk/tmpl/gtkradiomenuitem.sgml @@ -86,12 +86,13 @@ Deprecated compatibility macro. Use gtk_radio_menu_item_get_group() instead. </para> + <!-- ##### FUNCTION gtk_radio_menu_item_set_group ##### --> <para> Sets the group of a radio menu item, or changes it. </para> -@radio_menu_item: a #GtkRadioMenuItem. +@radio_menu_item: a #GtkRadioMenuItem. @group: the new group. @@ -101,5 +102,7 @@ Returns the group to which the radio menu item belongs, as a #GList of #GtkRadioMenuItem. The list belongs to GTK+ and should not be freed. </para> -@radio_menu_item: a #GtkRadioMenuItem. +@radio_menu_item: a #GtkRadioMenuItem. @Returns: the group of @radio_menu_item. + + diff --git a/docs/reference/gtk/tmpl/gtkrc.sgml b/docs/reference/gtk/tmpl/gtkrc.sgml index 30ffca8235..9aa21d3cc3 100644 --- a/docs/reference/gtk/tmpl/gtkrc.sgml +++ b/docs/reference/gtk/tmpl/gtkrc.sgml @@ -617,6 +617,18 @@ specific portions of a RC file. @Returns: +<!-- ##### FUNCTION gtk_rc_get_style_by_paths ##### --> +<para> + +</para> + +@settings: +@widget_path: +@class_path: +@type: +@Returns: + + <!-- ##### FUNCTION gtk_rc_add_widget_name_style ##### --> <para> Add a RcStyle that will be looked up by a match against @@ -683,6 +695,16 @@ Parse resource information directly from a string. @Returns: +<!-- ##### FUNCTION gtk_rc_reparse_all_for_settings ##### --> +<para> + +</para> + +@settings: +@force_load: +@Returns: + + <!-- ##### FUNCTION gtk_rc_add_default_file ##### --> <para> </para> diff --git a/docs/reference/gtk/tmpl/gtksizegroup.sgml b/docs/reference/gtk/tmpl/gtksizegroup.sgml index 47b262708e..c8c99710ee 100644 --- a/docs/reference/gtk/tmpl/gtksizegroup.sgml +++ b/docs/reference/gtk/tmpl/gtksizegroup.sgml @@ -50,6 +50,12 @@ reached from the widget by a chain of size groups of type </para> +<!-- ##### STRUCT GtkSizeGroup ##### --> +<para> + +</para> + + <!-- ##### ENUM GtkSizeGroupMode ##### --> <para> diff --git a/docs/reference/gtk/tmpl/gtkspinbutton.sgml b/docs/reference/gtk/tmpl/gtkspinbutton.sgml index 36dedde303..3207df6fd4 100644 --- a/docs/reference/gtk/tmpl/gtkspinbutton.sgml +++ b/docs/reference/gtk/tmpl/gtkspinbutton.sgml @@ -236,8 +236,9 @@ Gets the value in the @spin_button. This function is deprecated, use gtk_spin_button_get_value() instead. </para> -@spin_button: a #GtkSpinButton. @Returns: the value of @spin_button. +<!-- # Unused Parameters # --> +@spin_button: a #GtkSpinButton. <!-- ##### FUNCTION gtk_spin_button_get_value_as_int ##### --> diff --git a/docs/reference/gtk/tmpl/gtkstatusbar.sgml b/docs/reference/gtk/tmpl/gtkstatusbar.sgml index aa170063ec..5865c8f960 100644 --- a/docs/reference/gtk/tmpl/gtkstatusbar.sgml +++ b/docs/reference/gtk/tmpl/gtkstatusbar.sgml @@ -107,7 +107,7 @@ Forces the removal of a message from a statusbar's stack. The exact context_id a Sets whether the statusbar has a resize grip. %TRUE by default. </para> -@statusbar: a #GtkStatusBar. +@statusbar: a #GtkStatusBar. @setting: %TRUE to have a resize grip. diff --git a/docs/reference/gtk/tmpl/gtktreednd.sgml b/docs/reference/gtk/tmpl/gtktreednd.sgml index 3d0e200070..842769a899 100644 --- a/docs/reference/gtk/tmpl/gtktreednd.sgml +++ b/docs/reference/gtk/tmpl/gtktreednd.sgml @@ -28,3 +28,21 @@ GtkTreeView drag-and-drop </para> +<!-- ##### STRUCT GtkTreeDragDestIface ##### --> +<para> + +</para> + +@g_iface: +@drag_data_received: +@row_drop_possible: + +<!-- ##### STRUCT GtkTreeDragSourceIface ##### --> +<para> + +</para> + +@g_iface: +@drag_data_get: +@drag_data_delete: + diff --git a/docs/reference/gtk/tmpl/gtktreeselection.sgml b/docs/reference/gtk/tmpl/gtktreeselection.sgml index b6a8f56151..58fd239242 100644 --- a/docs/reference/gtk/tmpl/gtktreeselection.sgml +++ b/docs/reference/gtk/tmpl/gtktreeselection.sgml @@ -22,6 +22,7 @@ GtkTreeSelection @selection: @model: @path: +@path_currently_selected: @data: @Returns: @@ -123,6 +124,16 @@ GtkTreeSelection @path: +<!-- ##### FUNCTION gtk_tree_selection_path_is_selected ##### --> +<para> + +</para> + +@selection: +@path: +@Returns: + + <!-- ##### FUNCTION gtk_tree_selection_select_iter ##### --> <para> @@ -141,6 +152,16 @@ GtkTreeSelection @iter: +<!-- ##### FUNCTION gtk_tree_selection_iter_is_selected ##### --> +<para> + +</para> + +@selection: +@iter: +@Returns: + + <!-- ##### FUNCTION gtk_tree_selection_select_all ##### --> <para> diff --git a/docs/reference/gtk/tmpl/gtkwidget.sgml b/docs/reference/gtk/tmpl/gtkwidget.sgml index b360b44d7a..4781aee5fd 100644 --- a/docs/reference/gtk/tmpl/gtkwidget.sgml +++ b/docs/reference/gtk/tmpl/gtkwidget.sgml @@ -306,6 +306,14 @@ GtkWidget @offset_y: @shape_mask: +<!-- ##### ENUM GtkWidgetHelpType ##### --> +<para> + +</para> + +@GTK_WIDGET_HELP_TOOLTIP: +@GTK_WIDGET_HELP_WHATS_THIS: + <!-- ##### FUNCTION gtk_widget_new ##### --> <para> diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c index 41e65a15a2..66ae70f656 100644 --- a/gtk/gtkbindings.c +++ b/gtk/gtkbindings.c @@ -733,6 +733,7 @@ gtk_binding_set_add_path (GtkBindingSet *binding_set, g_return_if_fail (binding_set != NULL); g_return_if_fail (path_pattern != NULL); + g_return_if_fail (priority <= GTK_PATH_PRIO_MASK); priority &= GTK_PATH_PRIO_MASK; @@ -755,8 +756,7 @@ gtk_binding_set_add_path (GtkBindingSet *binding_set, pspec = g_new (PatternSpec, 1); pspec->pspec = g_pattern_spec_new (path_pattern); - pspec->seq_id = seq_id++ & 0x0fffffff; - pspec->seq_id |= priority << 28; + pspec->seq_id = priority << 28; pspec->user_data = binding_set; slist = *slist_p; @@ -767,17 +767,26 @@ gtk_binding_set_add_path (GtkBindingSet *binding_set, tmp_pspec = slist->data; slist = slist->next; - if (tmp_pspec->pspec->pattern_length == pspec->pspec->pattern_length && - g_str_equal (tmp_pspec->pspec->pattern_reversed, pspec->pspec->pattern_reversed)) + if (g_pattern_spec_equal (tmp_pspec->pspec, pspec->pspec)) { + GtkPathPriorityType lprio = tmp_pspec->seq_id >> 28; + g_pattern_spec_free (pspec->pspec); g_free (pspec); pspec = NULL; + if (lprio < priority) + { + tmp_pspec->seq_id &= 0x0fffffff; + tmp_pspec->seq_id |= priority << 28; + } break; } } if (pspec) - *slist_p = g_slist_prepend (*slist_p, pspec); + { + pspec->seq_id |= seq_id++ & 0x0fffffff; + *slist_p = g_slist_prepend (*slist_p, pspec); + } } static inline gboolean diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h index b62414ccd2..aac459b4d3 100644 --- a/gtk/gtkenums.h +++ b/gtk/gtkenums.h @@ -232,9 +232,9 @@ typedef enum GTK_PATH_PRIO_APPLICATION = 8, GTK_PATH_PRIO_THEME = 10, GTK_PATH_PRIO_RC = 12, - GTK_PATH_PRIO_HIGHEST = 15, - GTK_PATH_PRIO_MASK = 0x0f + GTK_PATH_PRIO_HIGHEST = 15 } GtkPathPriorityType; +#define GTK_PATH_PRIO_MASK 0x0f /* widget path types */ typedef enum |