summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boles <dboles.src@gmail.com>2018-06-19 18:30:34 +0100
committerDaniel Boles <dboles.src@gmail.com>2018-06-19 18:38:49 +0100
commit004b24a8187ecc05c443a86b0e396867e93972e9 (patch)
tree2038d2f72f50c968cf1d61ef052fabfcac4ce6f1
parent70d035ae951f8fc98a831b3d327c1ac09c599d5a (diff)
downloadgtk+-004b24a8187ecc05c443a86b0e396867e93972e9.tar.gz
a11y/entry: Fix copy-pasteo re 2ndary icon tooltip1160-crash-clearing-gtkentry-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
-rw-r--r--gtk/a11y/gtkentryaccessible.c2
1 files changed, 1 insertions, 1 deletions
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],
"");
}
}