summaryrefslogtreecommitdiff
path: root/gtk/window-decorator/switcher.c
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-02-19 00:50:41 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-02-19 00:50:41 +0800
commitc71ad82a51c539a83e51b08eb0ace43cbff443ca (patch)
tree0f871a4fae6dea90ec4fe4064db0f3b509bbe6e9 /gtk/window-decorator/switcher.c
parent14bd863ea1cefe28de156dcf15f71a2a93c42219 (diff)
downloadcompiz-with-glib-mainloop-c71ad82a51c539a83e51b08eb0ace43cbff443ca.tar.gz
compiz-with-glib-mainloop-c71ad82a51c539a83e51b08eb0ace43cbff443ca.tar.bz2
Cleanup init_settings some more, move the switcher stuff out into the
frame ctor and move USE_GCONF into one big ifdef
Diffstat (limited to 'gtk/window-decorator/switcher.c')
-rw-r--r--gtk/window-decorator/switcher.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/window-decorator/switcher.c b/gtk/window-decorator/switcher.c
index 1c4254e..af5c1c2 100644
--- a/gtk/window-decorator/switcher.c
+++ b/gtk/window-decorator/switcher.c
@@ -3,6 +3,7 @@
decor_frame_t *
create_switcher_frame (const gchar *type)
{
+ AtkObject *switcher_label_obj;
decor_frame_t *frame = decor_frame_new (type);
decor_extents_t _switcher_extents = { 6, 6, 6, 6 + SWITCHER_SPACE };
@@ -26,6 +27,11 @@ create_switcher_frame (const gchar *type)
gwd_decor_frame_ref (frame);
+ switcher_label = gtk_label_new ("");
+ switcher_label_obj = gtk_widget_get_accessible (switcher_label);
+ atk_object_set_role (switcher_label_obj, ATK_ROLE_STATUSBAR);
+ gtk_container_add (GTK_CONTAINER (frame->style_window_rgba), switcher_label);
+
return frame;
}