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 37e4ae2fbd
commit 5c9b25c66e

View File

@ -373,7 +373,7 @@ add_emoji (GtkWidget *box,
pango_layout_get_extents (layout, &rect, NULL); pango_layout_get_extents (layout, &rect, NULL);
/* Check for fallback rendering that generates too wide items */ /* 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); gtk_widget_destroy (label);
return; return;