From 004b24a8187ecc05c443a86b0e396867e93972e9 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Tue, 19 Jun 2018 18:30:34 +0100 Subject: 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 --- gtk/a11y/gtkentryaccessible.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/a11y/gtkentryaccessible.c b/gtk/a11y/gtkentryaccessible.c index 450194ca19..ded835c679 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], ""); } } -- cgit v1.2.1