summaryrefslogtreecommitdiff
path: root/gtk/gtksearchentry.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-05-27 17:54:23 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-06-05 20:35:10 +0100
commit9f09cfcfbd31a1c57b6f923072d8e91d3341a88c (patch)
tree29f93e72743e930b8023590760ff30e97d3db0d6 /gtk/gtksearchentry.c
parent7373cd962cac465f9f66576a0a7859f6cdfaa697 (diff)
downloadgtk+-9f09cfcfbd31a1c57b6f923072d8e91d3341a88c.tar.gz
a11y: Split GtkSearchEntryAccessible from GtkEntryAccessible
Use a separate accessible object for the GtkSearchEntry, just like we did for GtkPasswordEntry.
Diffstat (limited to 'gtk/gtksearchentry.c')
-rw-r--r--gtk/gtksearchentry.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index b8c224dd84..0ccf639e87 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -40,7 +40,7 @@
#include "gtkmarshalers.h"
#include "gtkstylecontext.h"
#include "gtkeventcontrollerkey.h"
-#include "a11y/gtkentryaccessible.h"
+#include "a11y/gtksearchentryaccessible.h"
/**
@@ -219,17 +219,6 @@ gtk_search_entry_get_property (GObject *object,
}
}
-static AtkObject *
-gtk_search_entry_get_accessible (GtkWidget *widget)
-{
- AtkObject *atk_obj;
-
- atk_obj = GTK_WIDGET_CLASS (gtk_search_entry_parent_class)->get_accessible (widget);
- atk_object_set_name (atk_obj, _("Search"));
-
- return atk_obj;
-}
-
static gboolean
gtk_search_entry_grab_focus (GtkWidget *widget)
{
@@ -259,7 +248,6 @@ gtk_search_entry_class_init (GtkSearchEntryClass *klass)
object_class->get_property = gtk_search_entry_get_property;
object_class->set_property = gtk_search_entry_set_property;
- widget_class->get_accessible = gtk_search_entry_get_accessible;
widget_class->grab_focus = gtk_search_entry_grab_focus;
widget_class->mnemonic_activate = gtk_search_entry_mnemonic_activate;
@@ -400,7 +388,7 @@ gtk_search_entry_class_init (GtkSearchEntryClass *klass)
"stop-search",
NULL);
- gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_ENTRY_ACCESSIBLE);
+ gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_SEARCH_ENTRY_ACCESSIBLE);
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BOX_LAYOUT);
gtk_widget_class_set_css_name (widget_class, I_("entry"));
}