[gtk/force-emoji] Force emoji presentation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/force-emoji] Force emoji presentation
- Date: Tue, 27 Nov 2018 23:20:26 +0000 (UTC)
commit 27d1e6511e136a28a101fb71ecea6a0aa7121418
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 27 18:16:43 2018 -0500
Force emoji presentation
Append a variation selector to the Emoji sequences,
to force Emoji presentation. Without this, some
Emoji come out with text presentation by default.
Closes: Pango #334
gtk/gtkemojichooser.c | 1 +
gtk/gtkemojicompletion.c | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c
index a829884fcc..0d4a234a8c 100644
--- a/gtk/gtkemojichooser.c
+++ b/gtk/gtkemojichooser.c
@@ -361,6 +361,7 @@ add_emoji (GtkWidget *box,
p += g_unichar_to_utf8 (code, p);
}
g_variant_unref (codes);
+ p += g_unichar_to_utf8 (0xFE0F, p);
p[0] = 0;
label = gtk_label_new (text);
diff --git a/gtk/gtkemojicompletion.c b/gtk/gtkemojicompletion.c
index e7583126d9..5aafbfc3e9 100644
--- a/gtk/gtkemojicompletion.c
+++ b/gtk/gtkemojicompletion.c
@@ -452,6 +452,7 @@ get_text (GVariant *emoji_data,
p += g_unichar_to_utf8 (code, p);
}
g_variant_unref (codes);
+ p += g_unichar_to_utf8 (0xFE0F, p);
p[0] = 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]