mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Fix sizing bug.
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org> * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing bug. * docs/reference/gtk/tmpl/gtkbutton.sgml: Remove ^M's. Not sure why all the docs updated.
This commit is contained in:
parent
a68df0b2e4
commit
79c202b506
@ -1,3 +1,10 @@
|
||||
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* 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 <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* 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 <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* 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 <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* 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 <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* 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 <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri Jun 7 23:11:42 2002 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* 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 <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -108,7 +108,6 @@ pixel_from_rgb (GdkVisual *visual,
|
||||
<structfield>blue_prec</structfield> give an alternate presentation
|
||||
of the information in <structfield>blue_mask</structfield>.
|
||||
@blue_prec: See above.
|
||||
@screen:
|
||||
|
||||
<!-- ##### ENUM GdkVisualType ##### -->
|
||||
<para>
|
||||
|
@ -162,6 +162,16 @@ box.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButtonBox:child-min-height ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButtonBox:child-min-width ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButtonBox:child-internal-pad-y ##### -->
|
||||
<para>
|
||||
|
||||
@ -172,13 +182,3 @@ box.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButtonBox:child-min-width ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButtonBox:child-min-height ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
@ -248,12 +248,12 @@ mouse cursor is.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButton:default-border ##### -->
|
||||
<!-- ##### ARG GtkButton:default-outside-border ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButton:default-outside-border ##### -->
|
||||
<!-- ##### ARG GtkButton:default-border ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
@ -66,13 +66,13 @@ Creates a new #GtkCheckButton with a #GtkLabel to the right of it.
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### ARG GtkCheckButton:indicator-size ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkCheckButton:indicator-spacing ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkCheckButton:indicator-size ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
@ -298,7 +298,7 @@ was clicked.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkDialog:content-area-border ##### -->
|
||||
<!-- ##### ARG GtkDialog:action-area-border ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
@ -308,7 +308,7 @@ was clicked.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkDialog:action-area-border ##### -->
|
||||
<!-- ##### ARG GtkDialog:content-area-border ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
@ -96,6 +96,7 @@ drop</link> interfaces.
|
||||
|
||||
@list_store:
|
||||
@iter:
|
||||
@Returns:
|
||||
<!-- # Unused Parameters # -->
|
||||
@store:
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
||||
<!-- ##### ARG GtkMenuBar:shadow-type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkMenuBar:internal-padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkMenuBar:shadow-type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
@ -153,12 +153,7 @@ Emitted when the range value changes.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkRange:stepper-size ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkRange:slider-width ##### -->
|
||||
<!-- ##### ARG GtkRange:trough-border ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
@ -168,6 +163,11 @@ Emitted when the range value changes.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkRange:stepper-size ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkRange:arrow-displacement-y ##### -->
|
||||
<para>
|
||||
|
||||
@ -178,7 +178,7 @@ Emitted when the range value changes.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkRange:trough-border ##### -->
|
||||
<!-- ##### ARG GtkRange:slider-width ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
@ -54,7 +54,17 @@ The #GtkScrollbar struct does not contain any public data.
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### ARG GtkScrollbar:has-forward-stepper ##### -->
|
||||
<!-- ##### ARG GtkScrollbar:min-slider-length ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkScrollbar:has-secondary-backward-stepper ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkScrollbar:has-secondary-forward-stepper ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
@ -69,17 +79,7 @@ The #GtkScrollbar struct does not contain any public data.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkScrollbar:min-slider-length ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkScrollbar:has-secondary-forward-stepper ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkScrollbar:has-secondary-backward-stepper ##### -->
|
||||
<!-- ##### ARG GtkScrollbar:has-forward-stepper ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
@ -386,6 +386,16 @@ Should be used if you wish to perform an action when ever the style of a toolbar
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkToolbar:button-relief ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkToolbar:space-size ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkToolbar:shadow-type ##### -->
|
||||
<para>
|
||||
|
||||
@ -396,18 +406,8 @@ Should be used if you wish to perform an action when ever the style of a toolbar
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkToolbar:button-relief ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkToolbar:internal-padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkToolbar:space-size ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
@ -88,6 +88,7 @@ GtkTreeStore
|
||||
|
||||
@tree_store:
|
||||
@iter:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_tree_store_insert ##### -->
|
||||
|
@ -901,6 +901,16 @@ Function used for #gtk_tree_view_map_expanded_rows.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkTreeView:indent-expanders ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkTreeView:horizontal-separator ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkTreeView:expander-size ##### -->
|
||||
<para>
|
||||
|
||||
@ -916,13 +926,3 @@ Function used for #gtk_tree_view_map_expanded_rows.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkTreeView:horizontal-separator ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkTreeView:indent-expanders ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
@ -2152,6 +2152,11 @@ a widget changes from un-anchored to anchored or vice-versa.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkWidget:is-focus ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkWidget:can-default ##### -->
|
||||
<para>
|
||||
|
||||
@ -2187,7 +2192,7 @@ a widget changes from un-anchored to anchored or vice-versa.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkWidget:focus-line-pattern ##### -->
|
||||
<!-- ##### ARG GtkWidget:focus-line-width ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
@ -2197,11 +2202,6 @@ a widget changes from un-anchored to anchored or vice-versa.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkWidget:focus-padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkWidget:cursor-aspect-ratio ##### -->
|
||||
<para>
|
||||
|
||||
@ -2212,13 +2212,18 @@ a widget changes from un-anchored to anchored or vice-versa.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkWidget:focus-line-width ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkWidget:secondary-cursor-color ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkWidget:focus-line-pattern ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkWidget:focus-padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
@ -844,3 +844,13 @@ Deprecated alias for gtk_window_set_position().
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkWindow:is-active ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkWindow:has-toplevel-focus ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user