forked from AuroraMiddleware/gtk
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:
parent
37e4ae2fbd
commit
5c9b25c66e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user