a11y/entry: Fix copy-pasteo re 2ndary icon tooltip
authorDaniel Boles <dboles.src@gmail.com>
Tue, 19 Jun 2018 17:30:34 +0000 (18:30 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Tue, 19 Jun 2018 17:37:25 +0000 (18:37 +0100)
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

index 3b23c7a64db341f4d88f04e3947edab5ba059060..de106c3cf049ee3312bbdd32fe921bde09456b21 100644 (file)
@@ -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],
                                       "");
             }
         }