diff --git a/ChangeLog b/ChangeLog index 34ec3c7dde..8978dd0290 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Fri Jun 7 23:11:42 2002 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing + bug. + + * docs/reference/gtk/tmpl/gtkbutton.sgml: Remove ^M's. + 2002-06-07 Matthias Clasen * gtk/gtktreeviewcolumn.c diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 34ec3c7dde..8978dd0290 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +Fri Jun 7 23:11:42 2002 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing + bug. + + * docs/reference/gtk/tmpl/gtkbutton.sgml: Remove ^M's. + 2002-06-07 Matthias Clasen * gtk/gtktreeviewcolumn.c diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 34ec3c7dde..8978dd0290 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +Fri Jun 7 23:11:42 2002 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing + bug. + + * docs/reference/gtk/tmpl/gtkbutton.sgml: Remove ^M's. + 2002-06-07 Matthias Clasen * gtk/gtktreeviewcolumn.c diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 34ec3c7dde..8978dd0290 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +Fri Jun 7 23:11:42 2002 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing + bug. + + * docs/reference/gtk/tmpl/gtkbutton.sgml: Remove ^M's. + 2002-06-07 Matthias Clasen * gtk/gtktreeviewcolumn.c diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 34ec3c7dde..8978dd0290 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +Fri Jun 7 23:11:42 2002 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing + bug. + + * docs/reference/gtk/tmpl/gtkbutton.sgml: Remove ^M's. + 2002-06-07 Matthias Clasen * gtk/gtktreeviewcolumn.c diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 34ec3c7dde..8978dd0290 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +Fri Jun 7 23:11:42 2002 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing + bug. + + * docs/reference/gtk/tmpl/gtkbutton.sgml: Remove ^M's. + 2002-06-07 Matthias Clasen * gtk/gtktreeviewcolumn.c diff --git a/docs/reference/gdk/tmpl/general.sgml b/docs/reference/gdk/tmpl/general.sgml index 14d6cd9a86..a277b19789 100644 --- a/docs/reference/gdk/tmpl/general.sgml +++ b/docs/reference/gdk/tmpl/general.sgml @@ -158,28 +158,28 @@ trapping X errors with gdk_error_trap_push() and gdk_error_trap_pop(). -@Returns: +@Returns: -@Returns: +@Returns: -@Returns: +@Returns: -@Returns: +@Returns: @@ -255,7 +255,7 @@ success or the reason for the failure of the grab attempt. -@Returns: +@Returns: @@ -288,7 +288,7 @@ available. -@time: +@time: diff --git a/docs/reference/gdk/tmpl/visuals.sgml b/docs/reference/gdk/tmpl/visuals.sgml index 4eb2afde48..a0597cc02e 100644 --- a/docs/reference/gdk/tmpl/visuals.sgml +++ b/docs/reference/gdk/tmpl/visuals.sgml @@ -108,7 +108,6 @@ pixel_from_rgb (GdkVisual *visual, blue_prec give an alternate presentation of the information in blue_mask. @blue_prec: See above. -@screen: diff --git a/docs/reference/gtk/tmpl/gtkbbox.sgml b/docs/reference/gtk/tmpl/gtkbbox.sgml index ceec7a0916..ecc2bfdd82 100644 --- a/docs/reference/gtk/tmpl/gtkbbox.sgml +++ b/docs/reference/gtk/tmpl/gtkbbox.sgml @@ -162,6 +162,16 @@ box. + + + + + + + + + + @@ -172,13 +182,3 @@ box. - - - - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkbutton.sgml b/docs/reference/gtk/tmpl/gtkbutton.sgml index d3aa683082..b67e1009bf 100644 --- a/docs/reference/gtk/tmpl/gtkbutton.sgml +++ b/docs/reference/gtk/tmpl/gtkbutton.sgml @@ -5,40 +5,40 @@ GtkButton A widget that creates a signal when clicked on. - -The #GtkButton widget is generally used to attach a function to that -is called when the button is pressed. The various signals and how to use -them are outlined below. - - -The #GtkButton widget can hold any valid child widget. That is it can -hold most any other standard #GtkWidget. The most commonly used child is -the #GtkLabel. + +The #GtkButton widget is generally used to attach a function to that +is called when the button is pressed. The various signals and how to use +them are outlined below. + + +The #GtkButton widget can hold any valid child widget. That is it can +hold most any other standard #GtkWidget. The most commonly used child is +the #GtkLabel. - - + + - -This should not be accessed directly. Use the accessor functions below. + +This should not be accessed directly. Use the accessor functions below. - -Creates a new #GtkButton widget. + +Creates a new #GtkButton widget. @Returns: The newly created #GtkButton widget. - -Creates a #GtkButton widget with a #GtkLabel child containing the given -text. + +Creates a #GtkButton widget with a #GtkLabel child containing the given +text. @label: The text you want the #GtkLabel to hold. @@ -64,52 +64,52 @@ text. - -Emits a #GtkButton::pressed signal to the given #GtkButton. + +Emits a #GtkButton::pressed signal to the given #GtkButton. @button: The #GtkButton you want to send the signal to. - -Emits a #GtkButton::released signal to the given #GtkButton. + +Emits a #GtkButton::released signal to the given #GtkButton. @button: The #GtkButton you want to send the signal to. - -Emits a #GtkButton::clicked signal to the given #GtkButton. + +Emits a #GtkButton::clicked signal to the given #GtkButton. @button: The #GtkButton you want to send the signal to. - -Emits a #GtkButton::enter signal to the given #GtkButton. + +Emits a #GtkButton::enter signal to the given #GtkButton. @button: The #GtkButton you want to send the signal to. - -Emits a #GtkButton::leave signal to the given #GtkButton. + +Emits a #GtkButton::leave signal to the given #GtkButton. @button: The #GtkButton you want to send the signal to. - -Sets the relief style of the edges of the given #GtkButton widget. -Three styles exist, GTK_RELIEF_NORMAL, GTK_RELIEF_HALF, GTK_RELIEF_NONE. -The default style is, as one can guess, GTK_RELIEF_NORMAL. - - + +Sets the relief style of the edges of the given #GtkButton widget. +Three styles exist, GTK_RELIEF_NORMAL, GTK_RELIEF_HALF, GTK_RELIEF_NONE. +The default style is, as one can guess, GTK_RELIEF_NORMAL. + + @button: The #GtkButton you want to set relief styles of. @@ -117,8 +117,8 @@ The default style is, as one can guess, GTK_RELIEF_NORMAL. - -Returns the current relief style of the given #GtkButton. + +Returns the current relief style of the given #GtkButton. @button: The #GtkButton you want the #GtkReliefStyle from. @@ -191,39 +191,39 @@ Returns the current relief style of the given #GtkButton. @button: the object which received the signal. - -Emitted when a button clicked on by the mouse and the cursor stays on the -button. If the cursor is not on the button when the mouse button is released, -the signal is not emitted. + +Emitted when a button clicked on by the mouse and the cursor stays on the +button. If the cursor is not on the button when the mouse button is released, +the signal is not emitted. @button: the object which received the signal. - -Emitted when the mouse cursor enters the region of the button. + +Emitted when the mouse cursor enters the region of the button. @button: the object which received the signal. - -Emitted when the mouse cursor leaves the region of the button. + +Emitted when the mouse cursor leaves the region of the button. @button: the object which received the signal. - -Emitted when the button is initially pressed. + +Emitted when the button is initially pressed. @button: the object which received the signal. - -Emitted when a button which is pressed is released, no matter where the -mouse cursor is. + +Emitted when a button which is pressed is released, no matter where the +mouse cursor is. @button: the object which received the signal. @@ -248,12 +248,12 @@ mouse cursor is. - + - + diff --git a/docs/reference/gtk/tmpl/gtkcheckbutton.sgml b/docs/reference/gtk/tmpl/gtkcheckbutton.sgml index 7b5e72c6ad..9f985152d9 100644 --- a/docs/reference/gtk/tmpl/gtkcheckbutton.sgml +++ b/docs/reference/gtk/tmpl/gtkcheckbutton.sgml @@ -66,13 +66,13 @@ Creates a new #GtkCheckButton with a #GtkLabel to the right of it. @Returns: - - - - - + + + + + diff --git a/docs/reference/gtk/tmpl/gtkdialog.sgml b/docs/reference/gtk/tmpl/gtkdialog.sgml index 6a113643a3..978b05e4f7 100644 --- a/docs/reference/gtk/tmpl/gtkdialog.sgml +++ b/docs/reference/gtk/tmpl/gtkdialog.sgml @@ -298,7 +298,7 @@ was clicked. - + @@ -308,7 +308,7 @@ was clicked. - + diff --git a/docs/reference/gtk/tmpl/gtkliststore.sgml b/docs/reference/gtk/tmpl/gtkliststore.sgml index 74178a5479..fc8d5d30f0 100644 --- a/docs/reference/gtk/tmpl/gtkliststore.sgml +++ b/docs/reference/gtk/tmpl/gtkliststore.sgml @@ -96,6 +96,7 @@ drop interfaces. @list_store: @iter: +@Returns: @store: diff --git a/docs/reference/gtk/tmpl/gtkmenubar.sgml b/docs/reference/gtk/tmpl/gtkmenubar.sgml index 30f4e8f85e..16b3972408 100644 --- a/docs/reference/gtk/tmpl/gtkmenubar.sgml +++ b/docs/reference/gtk/tmpl/gtkmenubar.sgml @@ -64,13 +64,13 @@ Adds a new #GtkMenuItem to the GtkMenuBar at the position defined by @position @position: the position in the item list where the @child is added. - - - - - + + + + + diff --git a/docs/reference/gtk/tmpl/gtkrange.sgml b/docs/reference/gtk/tmpl/gtkrange.sgml index 8f4f787e29..94b907eb27 100644 --- a/docs/reference/gtk/tmpl/gtkrange.sgml +++ b/docs/reference/gtk/tmpl/gtkrange.sgml @@ -153,12 +153,7 @@ Emitted when the range value changes. - - - - - - + @@ -168,6 +163,11 @@ Emitted when the range value changes. + + + + + @@ -178,7 +178,7 @@ Emitted when the range value changes. - + diff --git a/docs/reference/gtk/tmpl/gtkscrollbar.sgml b/docs/reference/gtk/tmpl/gtkscrollbar.sgml index cc947c106e..fd755020df 100644 --- a/docs/reference/gtk/tmpl/gtkscrollbar.sgml +++ b/docs/reference/gtk/tmpl/gtkscrollbar.sgml @@ -54,7 +54,17 @@ The #GtkScrollbar struct does not contain any public data. - + + + + + + + + + + + @@ -69,17 +79,7 @@ The #GtkScrollbar struct does not contain any public data. - - - - - - - - - - - + diff --git a/docs/reference/gtk/tmpl/gtktoolbar.sgml b/docs/reference/gtk/tmpl/gtktoolbar.sgml index 9ebf2d6d86..c996d878e3 100644 --- a/docs/reference/gtk/tmpl/gtktoolbar.sgml +++ b/docs/reference/gtk/tmpl/gtktoolbar.sgml @@ -386,6 +386,16 @@ Should be used if you wish to perform an action when ever the style of a toolbar + + + + + + + + + + @@ -396,18 +406,8 @@ Should be used if you wish to perform an action when ever the style of a toolbar - - - - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtktreestore.sgml b/docs/reference/gtk/tmpl/gtktreestore.sgml index 56af9fcd3d..d1fdc867de 100644 --- a/docs/reference/gtk/tmpl/gtktreestore.sgml +++ b/docs/reference/gtk/tmpl/gtktreestore.sgml @@ -88,6 +88,7 @@ GtkTreeStore @tree_store: @iter: +@Returns: diff --git a/docs/reference/gtk/tmpl/gtktreeview.sgml b/docs/reference/gtk/tmpl/gtktreeview.sgml index b8d73fe9c8..be18693948 100644 --- a/docs/reference/gtk/tmpl/gtktreeview.sgml +++ b/docs/reference/gtk/tmpl/gtktreeview.sgml @@ -901,6 +901,16 @@ Function used for #gtk_tree_view_map_expanded_rows. + + + + + + + + + + @@ -916,13 +926,3 @@ Function used for #gtk_tree_view_map_expanded_rows. - - - - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkwidget.sgml b/docs/reference/gtk/tmpl/gtkwidget.sgml index eb1d242179..42b6e26e39 100644 --- a/docs/reference/gtk/tmpl/gtkwidget.sgml +++ b/docs/reference/gtk/tmpl/gtkwidget.sgml @@ -2152,6 +2152,11 @@ a widget changes from un-anchored to anchored or vice-versa. + + + + + @@ -2187,7 +2192,7 @@ a widget changes from un-anchored to anchored or vice-versa. - + @@ -2197,11 +2202,6 @@ a widget changes from un-anchored to anchored or vice-versa. - - - - - @@ -2212,13 +2212,18 @@ a widget changes from un-anchored to anchored or vice-versa. - - - - - + + + + + + + + + + diff --git a/docs/reference/gtk/tmpl/gtkwindow.sgml b/docs/reference/gtk/tmpl/gtkwindow.sgml index ed2afd4188..c2fe9419c0 100644 --- a/docs/reference/gtk/tmpl/gtkwindow.sgml +++ b/docs/reference/gtk/tmpl/gtkwindow.sgml @@ -844,3 +844,13 @@ Deprecated alias for gtk_window_set_position(). + + + + + + + + + + diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 54ddd15c27..cff42ce7af 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -8852,9 +8852,9 @@ gtk_tree_view_real_expand_row (GtkTreeView *tree_view, GtkTreeIter temp; gboolean expand; - if (node->children && !open_all) - return TRUE; + return FALSE; + if (! GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_IS_PARENT)) return FALSE; @@ -8862,6 +8862,36 @@ gtk_tree_view_real_expand_row (GtkTreeView *tree_view, if (! gtk_tree_model_iter_has_child (tree_view->priv->model, &iter)) return FALSE; + + if (node->children && open_all) + { + gboolean retval = FALSE; + GtkTreePath *tmp_path = gtk_tree_path_copy (path); + + gtk_tree_path_append_index (tmp_path, 0); + tree = node->children; + node = tree->root; + while (node->left != tree->nil) + node = node->left; + /* try to expand the children */ + do + { + gboolean t; + t = gtk_tree_view_real_expand_row (tree_view, tmp_path, tree, node, + TRUE, animate); + if (t) + retval = TRUE; + + gtk_tree_path_next (tmp_path); + node = _gtk_rbtree_next (tree, node); + } + while (node != NULL); + + gtk_tree_path_free (tmp_path); + + return retval; + } + g_signal_emit (G_OBJECT (tree_view), tree_view_signals[TEST_EXPAND_ROW], 0, &iter, path, &expand); if (expand)