From: Daniel Boles Date: Tue, 19 Jun 2018 17:30:34 +0000 (+0100) Subject: a11y/entry: Fix copy-pasteo re 2ndary icon tooltip X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~56^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4f979469f1b0488adce105727aa09f60e4680cd0;p=gtk4.git a11y/entry: Fix copy-pasteo re 2ndary icon tooltip The else case was wrongly resetting the accessible description on the primary icon, which might not exist and can therefore cause a crash. https://gitlab.gnome.org/GNOME/gtk/issues/1160 --- diff --git a/gtk/a11y/gtkentryaccessible.c b/gtk/a11y/gtkentryaccessible.c index 3b23c7a64d..de106c3cf0 100644 --- a/gtk/a11y/gtkentryaccessible.c +++ b/gtk/a11y/gtkentryaccessible.c @@ -604,7 +604,7 @@ gtk_entry_accessible_notify_gtk (GObject *obj, } else { - atk_object_set_description (priv->icons[GTK_ENTRY_ICON_PRIMARY], + atk_object_set_description (priv->icons[GTK_ENTRY_ICON_SECONDARY], ""); } }