gtksearchentry: Provide an accessible name

https://bugzilla.gnome.org/show_bug.cgi?id=706014
This commit is contained in:
Joanmarie Diggs
2013-08-15 15:20:19 +02:00
parent 68ce183dfa
commit e67d0119fe

View File

@@ -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"));
}
/**