[gtk/1160-crash-clearing-gtkentry-icon-tooltip] a11y/entry: Fix copy-pasteo re 2ndary icon tooltip



commit 761b772a79bd067774282805f741dc1d75f3e72d
Author: Daniel Boles <dboles src gmail com>
Date:   Tue Jun 19 18:30:34 2018 +0100

    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],
                                       "");
             }
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]