Cherry-pick emojichooser-Pass-chooser-to-add_emoji.patch:

- Fix variant selector in emoji chooser

LP: #1807721

Gbp-Dch: Full
This commit is contained in:
Jeremy Bicha
2018-12-10 10:26:19 -05:00
parent 208ce309f6
commit cf94094558
3 changed files with 27 additions and 1 deletions

View File

@ -9,7 +9,6 @@ Emoji come out with text presentation by default.
Closes: Pango #334
(cherry picked from commit aac38198a3f5636c84033337c16df374f410b1e9
and commit b74e3209a5af03678ade12bfe6936171ff204b8c)
---
gtk/gtkemojichooser.c | 1 +
gtk/gtkemojicompletion.c | 1 +

View File

@ -0,0 +1,26 @@
From: =?utf-8?q?Timm_B=C3=A4der?= <mail@baedert.org>
Date: Thu, 11 Oct 2018 12:27:17 +0200
Subject: emojichooser: Pass chooser to add_emoji
https://gitlab.gnome.org/GNOME/gtk/issues/1398
(cherry picked from commit dbbc7b3859f4b5d504cc12a54b2eba40e040c7e8)
---
gtk/gtkemojichooser.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c
index b423f80..6efb056 100644
--- a/gtk/gtkemojichooser.c
+++ b/gtk/gtkemojichooser.c
@@ -302,9 +302,9 @@ show_variations (GtkEmojiChooser *chooser,
g_signal_connect (box, "child-activated", G_CALLBACK (emoji_activated), parent_popover);
- add_emoji (box, FALSE, emoji_data, 0, NULL);
+ add_emoji (box, FALSE, emoji_data, 0, chooser);
for (modifier = 0x1f3fb; modifier <= 0x1f3ff; modifier++)
- add_emoji (box, FALSE, emoji_data, modifier, NULL);
+ add_emoji (box, FALSE, emoji_data, modifier, chooser);
gtk_widget_show_all (view);
gtk_popover_popup (GTK_POPOVER (popover));

View File

@ -7,3 +7,4 @@ wayland-Avoid-crashes-inside-wl_proxy_marshal.patch
reftest-known-fail.patch
Don-t-test-default-constructed-GdkPixbuf-properties.patch
Force-emoji-presentation.patch
emojichooser-Pass-chooser-to-add_emoji.patch