aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-07-29 17:09:26 +0200
committerfiaxh <git@lightrise.org>2021-07-29 17:28:47 +0200
commit7cedb64d3f550908b85b776dc8db49746c55e291 (patch)
tree96a6fabe2057e1cd220dc23ab102ac672367367c /main/src
parentdefdf8e6ae9af1a2e017a74f9a61a38953bae7fc (diff)
downloaddino-7cedb64d3f550908b85b776dc8db49746c55e291.tar.gz
dino-7cedb64d3f550908b85b776dc8db49746c55e291.zip
Fix custom emoji picker for gtk >= 3.24.30
fixes #1083
Diffstat (limited to 'main/src')
-rw-r--r--main/src/emojichooser.c3
1 files changed, 3 insertions, 0 deletions
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));
}