From 900454e9d97246a2fce56d4ef1e059f11fa2bada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 7 Dec 2022 19:26:29 +0100 Subject: [PATCH] emojichooser: Actually disable the recent section 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 (cherry picked from commit 89c816a614db4083e80862b631f4b3e44aa17eae) --- gtk/gtkemojichooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c index 66f646641a..1ef9e519ff 100644 --- a/gtk/gtkemojichooser.c +++ b/gtk/gtkemojichooser.c @@ -151,7 +151,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);