diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-03-05 20:30:38 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-03-05 20:30:38 +0000 |
commit | 79757da2a94f559f22a8465935c894996bd33e6d (patch) | |
tree | 6536edccc5fd8152dae19a2097c95eb77e6b8d58 | |
parent | 86d38e6ae2cccb46cc01facdbd3bdfa9b47a10ed (diff) | |
parent | bfe0f7dd4dbc37048e111caafdd9b5f555bd8d16 (diff) | |
download | gtk+-79757da2a94f559f22a8465935c894996bd33e6d.tar.gz |
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
-rw-r--r-- | gtk/gtklabel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 1a2453ff5e..4bb92fd92d 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -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) { |