From 4f979469f1b0488adce105727aa09f60e4680cd0 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Tue, 19 Jun 2018 18:30:34 +0100 Subject: [PATCH] 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 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], ""); } } -- 2.30.2