summaryrefslogtreecommitdiff
path: root/gtk/gtksearchentry.c
diff options
context:
space:
mode:
authorJoanmarie Diggs <jdiggs@igalia.com>2013-08-15 15:20:19 +0200
committerJoanmarie Diggs <jdiggs@igalia.com>2013-08-15 16:37:29 +0200
commite67d0119fe7c81313701fac239ac65d17ca5433e (patch)
tree7adf344f5147b6b5bd2ae3645320b8a82fab679b /gtk/gtksearchentry.c
parent68ce183dfa3f8300daf00ceff37c53694f009372 (diff)
downloadgtk+-e67d0119fe7c81313701fac239ac65d17ca5433e.tar.gz
gtksearchentry: Provide an accessible name
https://bugzilla.gnome.org/show_bug.cgi?id=706014
Diffstat (limited to 'gtk/gtksearchentry.c')
-rw-r--r--gtk/gtksearchentry.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index 0614c33d70..e05debb3b1 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"));
}
/**