[gtk] gtk-demo: Always have at least 1 icon in the fishbowl



commit aca20dbb78c8453048c24e93fa568bfe5b879f9b
Author: Benjamin Otte <otte redhat com>
Date:   Thu Apr 26 00:17:23 2018 +0200

    gtk-demo: Always have at least 1 icon in the fishbowl
    
    When changing the widget type, don't start out with 0 icons.

 demos/gtk-demo/gtkfishbowl.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/demos/gtk-demo/gtkfishbowl.c b/demos/gtk-demo/gtkfishbowl.c
index f29d67b064..642db66afe 100644
--- a/demos/gtk-demo/gtkfishbowl.c
+++ b/demos/gtk-demo/gtkfishbowl.c
@@ -656,5 +656,7 @@ gtk_fishbowl_set_creation_func (GtkFishbowl         *fishbowl,
 
   priv->creation_func = creation_func;
 
+  gtk_fishbowl_set_count (fishbowl, 1);
+
   g_object_thaw_notify (G_OBJECT (fishbowl));
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]