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.
This commit is contained in:
Matthias Clasen 2018-07-19 17:50:54 -04:00
parent e37e1dfcb0
commit c52d9cfc14

View File

@ -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;