[gtk/ebassi/for-master: 6/7] demo: Make GtkFishBowl a presentation widget




commit 5afa985e8510a82269a85ad6c1895bdc940907b0
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Nov 19 12:16:26 2020 +0000

    demo: Make GtkFishBowl a presentation widget
    
    It has no accessible content, even if it displays widgets.

 demos/gtk-demo/gtkfishbowl.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/demos/gtk-demo/gtkfishbowl.c b/demos/gtk-demo/gtkfishbowl.c
index dd33486e15..135f909bf0 100644
--- a/demos/gtk-demo/gtkfishbowl.c
+++ b/demos/gtk-demo/gtkfishbowl.c
@@ -342,6 +342,8 @@ gtk_fishbowl_class_init (GtkFishbowlClass *klass)
                           G_PARAM_READWRITE);
 
   g_object_class_install_properties (object_class, NUM_PROPERTIES, props);
+
+  gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_PRESENTATION);
 }
 
 guint


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]