[gtk] search entry: Use a GtkEntryAccessible
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] search entry: Use a GtkEntryAccessible
- Date: Fri, 22 Feb 2019 20:56:18 +0000 (UTC)
commit 2b9436b27939e3afb3e9746226d5fb6350a89539
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 22 15:50:45 2019 -0500
search entry: Use a GtkEntryAccessible
This preserves the status quo of a11y support
for entry variations.
gtk/gtksearchentry.c | 3 +++
1 file changed, 3 insertions(+)
---
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"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]