emojichooser: Actually disable the recent section
authorGuido Günther <agx@sigxcpu.org>
Wed, 7 Dec 2022 18:26:29 +0000 (19:26 +0100)
committerGuido Günther <agx@sigxcpu.org>
Wed, 7 Dec 2022 18:33:59 +0000 (19:33 +0100)
The loop sets empty = FALSE when there are emojis but for that
to work we need to initialize the value to TRUE initially.

Fixes: 7928532bc5c33b2c6a10bae138ebc6dca1843cb0
gtk/gtkemojichooser.c

index 8415ed3eb3bc20ebe2e83d30934a15da13bd24d5..29e3924eb542040eec875c6748ea64161862cd73 100644 (file)
@@ -312,7 +312,7 @@ populate_recent_section (GtkEmojiChooser *chooser)
   GVariant *variant;
   GVariant *item;
   GVariantIter iter;
-  gboolean empty = FALSE;
+  gboolean empty = TRUE;
 
   variant = g_settings_get_value (chooser->settings, "recent-emoji");
   g_variant_iter_init (&iter, variant);