From 7cedb64d3f550908b85b776dc8db49746c55e291 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 29 Jul 2021 17:09:26 +0200 Subject: Fix custom emoji picker for gtk >= 3.24.30 fixes #1083 --- main/src/emojichooser.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main') diff --git a/main/src/emojichooser.c b/main/src/emojichooser.c index 5ffc15c3..ba401ddc 100644 --- a/main/src/emojichooser.c +++ b/main/src/emojichooser.c @@ -437,6 +437,9 @@ populate_emoji_chooser (gpointer data) if (!chooser->data) { bytes = g_resources_lookup_data ("/org/gtk/libgtk/emoji/emoji.data", 0, NULL); + if (bytes == NULL) { + bytes = g_resources_lookup_data ("/org/gtk/libgtk/emoji/en.data", 0, NULL); + } chooser->data = g_variant_ref_sink (g_variant_new_from_bytes (G_VARIANT_TYPE ("a(auss)"), bytes, TRUE)); } -- cgit v1.2.3-70-g09d2