[gtk+] gtksearchentry: Provide an accessible name



commit e67d0119fe7c81313701fac239ac65d17ca5433e
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Aug 15 15:20:19 2013 +0200

    gtksearchentry: Provide an accessible name
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706014

 gtk/gtksearchentry.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index 0614c33..e05debb 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -27,6 +27,7 @@
 
 #include "config.h"
 
+#include "gtkaccessible.h"
 #include "gtksearchentry.h"
 #include "gtkmarshalers.h"
 #include "gtkintl.h"
@@ -226,11 +227,17 @@ gtk_search_entry_changed (GtkEditable *editable)
 static void
 gtk_search_entry_init (GtkSearchEntry *entry)
 {
+  AtkObject *atk_obj;
+
   g_object_set (entry,
                 "primary-icon-name", "edit-find-symbolic",
                 "primary-icon-activatable", FALSE,
                 "primary-icon-sensitive", FALSE,
                 NULL);
+
+  atk_obj = gtk_widget_get_accessible (GTK_WIDGET (entry));
+  if (GTK_IS_ACCESSIBLE (atk_obj))
+    atk_object_set_name (atk_obj, _("Search"));
 }
 
 /**


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