[gtk/force-emoji: 4/4] Force emoji presentation



commit 876adda39c701f26914064a77a189d364aefeeb9
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]