summaryrefslogtreecommitdiff
path: root/gtk/gtktree.c
diff options
context:
space:
mode:
authorTim Janik <timj@gimp.org>1998-02-21 14:11:40 +0000
committerTim Janik <timj@src.gnome.org>1998-02-21 14:11:40 +0000
commit800afc55d7031b1c088337df61c4c74e16ddb563 (patch)
tree5fa01c0c71b9026676e4b96f3cf898a404f8ca53 /gtk/gtktree.c
parenta8d6f14c2db9e4166d8b10d2974e7ad457553310 (diff)
downloadgtk+-800afc55d7031b1c088337df61c4c74e16ddb563.tar.gz
gtk_object_query_args takes an additional pointer now which if supplied
Sat Feb 21 14:49:17 1998 Tim Janik <timj@gimp.org> * gtk/gtkobject.h: * gtk/gtkobject.c: gtk_object_query_args takes an additional pointer now which if supplied will point to an array holding the sequential argument ids. * gtk/gtktree.c: fix emission of selection_changed signal, supplied by Bolliet Jerome. * gtk/gtktreeitem.c: inline the plus and minus pixmaps, supplied by Bolliet Jerome. * gtk/gtknotebook.c: do a resize when a page is removed and don't refer to the removed page on the switch signal, supplied by Lars Hamann and Stefan Jeske. * gtk/gtktoolbar.h: * gtk/gtktoolbar.c: gtk_toolbar_append_item, gtk_toolbar_prepend_item, gtk_toolbar_insert_item, gtk_toolbar_append_widget, gtk_toolbar_prepend_widget, gtk_toolbar_insert_widget: take an additional gchar *tooltip_private_text as argument to fully support the underlying call to gtk_tooltip_set_tip. (made the ChangeLog catch up with my last commits).
Diffstat (limited to 'gtk/gtktree.c')
-rw-r--r--gtk/gtktree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktree.c b/gtk/gtktree.c
index 8bc7145589..cf45e6cf67 100644
--- a/gtk/gtktree.c
+++ b/gtk/gtktree.c
@@ -271,12 +271,10 @@ gtk_tree_add (GtkContainer *container,
tree->children = g_list_append (tree->children, widget);
-#if 0
if (!tree->selection && (tree->selection_mode == GTK_SELECTION_BROWSE))
{
gtk_tree_select_child (tree, widget);
}
-#endif
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (container))
gtk_widget_queue_resize (widget);
@@ -946,6 +944,8 @@ gtk_real_tree_select_child (GtkTree *tree,
gtk_signal_emit (GTK_OBJECT (tree->root_tree),
tree_signals[SELECTION_CHANGED]);
+ break;
+
case GTK_SELECTION_BROWSE:
selection = root_selection;