diff options
| author | Matthias Clasen <mclasen@redhat.com> | 2019-02-22 15:50:45 -0500 |
|---|---|---|
| committer | Matthias Clasen <mclasen@redhat.com> | 2019-02-22 15:50:45 -0500 |
| commit | 2b9436b27939e3afb3e9746226d5fb6350a89539 (patch) | |
| tree | d82dabef26fd9353c970a3af12a96db8bf5fd6c8 | |
| parent | bd99ae37677fe7fc9a3d329a1117f5e00861def4 (diff) | |
| download | gtk+-2b9436b27939e3afb3e9746226d5fb6350a89539.tar.gz | |
search entry: Use a GtkEntryAccessible
This preserves the status quo of a11y support
for entry variations.
| -rw-r--r-- | gtk/gtksearchentry.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c index 534718f309..188ede1d9f 100644 --- a/gtk/gtksearchentry.c +++ b/gtk/gtksearchentry.c @@ -41,6 +41,8 @@ #include "gtkmarshalers.h" #include "gtkstylecontext.h" #include "gtkeventcontrollerkey.h" +#include "a11y/gtkentryaccessible.h" + /** * SECTION:gtksearchentry @@ -390,6 +392,7 @@ gtk_search_entry_class_init (GtkSearchEntryClass *klass) gtk_binding_entry_add_signal (binding_set, GDK_KEY_Escape, 0, "stop-search", 0); + gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_ENTRY_ACCESSIBLE); gtk_widget_class_set_css_name (widget_class, I_("entry")); } |
