From: Benjamin Otte Date: Wed, 25 Apr 2018 22:17:23 +0000 (+0200) Subject: gtk-demo: Always have at least 1 icon in the fishbowl X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~367 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=aca20dbb78c8453048c24e93fa568bfe5b879f9b;p=gtk4.git gtk-demo: Always have at least 1 icon in the fishbowl When changing the widget type, don't start out with 0 icons. --- 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)); }