[gtk/gtk-3-24] moji chooser: Try harder to avoid fallback
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24] moji chooser: Try harder to avoid fallback
- Date: Fri, 20 Jul 2018 02:11:38 +0000 (UTC)
commit c52d9cfc14009b1821f99e2c9b30534ae164914f
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jul 19 17:50:54 2018 -0400
moji chooser: Try harder to avoid fallback
We don't want to see any fallback rendering.
The current check was still letting some fallback
combinations through.
Based on work by Julian Sparber.
gtk/gtkemojichooser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c
index 64ec1959ce..68cabda67e 100644
--- a/gtk/gtkemojichooser.c
+++ b/gtk/gtkemojichooser.c
@@ -404,7 +404,7 @@ add_emoji (GtkWidget *box,
pango_layout_get_extents (layout, &rect, NULL);
/* Check for fallback rendering that generates too wide items */
- if (rect.width >= 2 * chooser->emoji_max_width)
+ if (rect.width >= 1.5 * chooser->emoji_max_width)
{
gtk_widget_destroy (label);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]