Merge branch 'fix-label-link-activate' into 'gtk-3-24'

label: Skip updating link state if we have no layout

See merge request GNOME/gtk!3262
This commit is contained in:
Matthias Clasen 2021-03-05 20:30:38 +00:00
commit 79757da2a9

View File

@ -6755,6 +6755,11 @@ emit_activate_link (GtkLabel *label,
GtkStateFlags state;
g_signal_emit (label, signals[ACTIVATE_LINK], 0, link->uri, &handled);
/* signal handler might have invalidated the layout */
if (!priv->layout)
return;
if (handled && priv->track_links && !link->visited &&
priv->select_info && priv->select_info->links)
{