diff options
author | Kalev Lember <klember@redhat.com> | 2015-08-08 16:33:42 +0200 |
---|---|---|
committer | Kalev Lember <klember@redhat.com> | 2015-08-08 16:54:31 +0200 |
commit | d6f51ef7b299f0bdc7522ced74482c510dc947b4 (patch) | |
tree | 429383496fcee367a0327a839fb4a9b1b3d19ebc | |
parent | 1f4f8833b1d8a1bd17fd86f93f024c524d6284ac (diff) | |
download | gtk+-d6f51ef7b299f0bdc7522ced74482c510dc947b4.tar.gz |
listbox: Avoid using show_all on rows
Don't use gtk_widget_show_all() on row widgets because that would
unconditionally show all of its children. This might be unwanted in case
the row implementation wants to keep some of its children hidden.
This commit changes it to use show() instead of show_all() and relies on
the row widget to control the visibility of its children itself as
appropriate.
https://bugzilla.gnome.org/show_bug.cgi?id=753392
-rw-r--r-- | gtk/gtklistbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c index e6846d2d70..9de26ca914 100644 --- a/gtk/gtklistbox.c +++ b/gtk/gtklistbox.c @@ -3684,7 +3684,7 @@ gtk_list_box_bound_model_changed (GListModel *list, if (g_object_is_floating (widget)) g_object_ref_sink (widget); - gtk_widget_show_all (widget); + gtk_widget_show (widget); gtk_list_box_insert (box, widget, position + i); g_object_unref (widget); |