[gtk/ebassi/new-a11y: 62/63] inspector: Support the a11y debug flag
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/new-a11y: 62/63] inspector: Support the a11y debug flag
- Date: Mon, 20 Jul 2020 12:11:40 +0000 (UTC)
commit 5c2bb4dbfad4900296397aed07a2c994108279de
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 17 10:40:31 2020 -0400
inspector: Support the a11y debug flag
Add support for the GTK_DEBUG_A11Y debug flag in
the logs tab.
gtk/inspector/logs.c | 3 +++
gtk/inspector/logs.ui | 6 ++++++
2 files changed, 9 insertions(+)
---
diff --git a/gtk/inspector/logs.c b/gtk/inspector/logs.c
index 58f43386eb..00427e792a 100644
--- a/gtk/inspector/logs.c
+++ b/gtk/inspector/logs.c
@@ -76,6 +76,7 @@ struct _GtkInspectorLogs
GtkWidget *printing;
GtkWidget *tree;
GtkWidget *text;
+ GtkWidget *a11y;
GdkDisplay *display;
};
@@ -170,6 +171,7 @@ flag_toggled (GtkWidget *button,
update_flag (logs->printing, &flags, GTK_DEBUG_PRINTING);
update_flag (logs->tree, &flags, GTK_DEBUG_TREE);
update_flag (logs->text, &flags, GTK_DEBUG_TEXT);
+ update_flag (logs->a11y, &flags, GTK_DEBUG_A11Y);
gtk_set_display_debug_flags (logs->display, flags);
}
@@ -211,6 +213,7 @@ gtk_inspector_logs_class_init (GtkInspectorLogsClass *klass)
gtk_widget_class_bind_template_child (widget_class, GtkInspectorLogs, printing);
gtk_widget_class_bind_template_child (widget_class, GtkInspectorLogs, tree);
gtk_widget_class_bind_template_child (widget_class, GtkInspectorLogs, text);
+ gtk_widget_class_bind_template_child (widget_class, GtkInspectorLogs, a11y);
gtk_widget_class_bind_template_callback (widget_class, flag_toggled);
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BOX_LAYOUT);
diff --git a/gtk/inspector/logs.ui b/gtk/inspector/logs.ui
index 89236ec6aa..54989cc95d 100644
--- a/gtk/inspector/logs.ui
+++ b/gtk/inspector/logs.ui
@@ -215,6 +215,12 @@
<signal name="toggled" handler="flag_toggled"/>
</object>
</child>
+ <child>
+ <object class="GtkCheckButton" id="a11y">
+ <property name="label">Accessibility</property>
+ <signal name="toggled" handler="flag_toggled"/>
+ </object>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]