From: Matthias Clasen Date: Sun, 18 Jun 2023 16:59:51 +0000 (-0400) Subject: gtk-demo: Miscellaneous a11y improvements X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~128^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8d9a59f69869f6cc955cf4bda996ecbaa4720a24;p=gtk4.git gtk-demo: Miscellaneous a11y improvements --- diff --git a/demos/gtk-demo/clipboard.ui b/demos/gtk-demo/clipboard.ui index f8a2146fa6..b632d96e4a 100644 --- a/demos/gtk-demo/clipboard.ui +++ b/demos/gtk-demo/clipboard.ui @@ -4,6 +4,9 @@ 1 Clipboard + + label + vertical @@ -13,7 +16,7 @@ 12 12 - + “Copy” will copy the selected data the clipboard, “Paste” will show the current clipboard contents. You can also drag the data to the bottom. 1 40 diff --git a/demos/gtk-demo/demo3widget.c b/demos/gtk-demo/demo3widget.c index e2ddf744e1..e34908ffa2 100644 --- a/demos/gtk-demo/demo3widget.c +++ b/demos/gtk-demo/demo3widget.c @@ -387,6 +387,8 @@ demo3_widget_class_init (Demo3WidgetClass *class) gtk_widget_class_set_template_from_resource (widget_class, "/menu/demo3widget.ui"); gtk_widget_class_bind_template_child (widget_class, Demo3Widget, menu); gtk_widget_class_bind_template_callback (widget_class, pressed_cb); + + gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_IMG); } GtkWidget * diff --git a/demos/gtk-demo/demo3widget.ui b/demos/gtk-demo/demo3widget.ui index ca82d29128..b09c62001a 100644 --- a/demos/gtk-demo/demo3widget.ui +++ b/demos/gtk-demo/demo3widget.ui @@ -19,8 +19,14 @@