gtk-demo: Always have at least 1 icon in the fishbowl
authorBenjamin Otte <otte@redhat.com>
Wed, 25 Apr 2018 22:17:23 +0000 (00:17 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 27 Apr 2018 12:32:28 +0000 (14:32 +0200)
When changing the widget type, don't start out with 0 icons.

demos/gtk-demo/gtkfishbowl.c

index f29d67b064f5b484d0d3254fc34be60f1dc5d271..642db66afecccc85ec9fc55964578e3c59909aab 100644 (file)
@@ -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));
 }