From dd3ed8035185983d383eaff223985d6832f84db5 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Fri, 13 Dec 2013 10:32:14 +0100 Subject: Add a volume control widget to the panel --- shell/gtk-shell.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shell/gtk-shell.c') diff --git a/shell/gtk-shell.c b/shell/gtk-shell.c index 86eeef5..2bad3c1 100644 --- a/shell/gtk-shell.c +++ b/shell/gtk-shell.c @@ -8,6 +8,7 @@ #include "clock.h" #include "favorites.h" #include "launcher-grid.h" +#include "sound-applet.h" extern char **environ; /* defined by libc */ @@ -115,6 +116,7 @@ panel_create(struct desktop *desktop) GdkWindow *gdk_window; struct element *panel; GtkWidget *box1, *box2, *button; + GtkWidget *sound_applet, *popup; panel = malloc(sizeof *panel); memset(panel, 0, sizeof *panel); @@ -143,6 +145,9 @@ panel_create(struct desktop *desktop) box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_end (GTK_BOX (box2), weston_gtk_clock_new (), FALSE, FALSE, 6); + + sound_applet = weston_gtk_sound_applet_new (); + gtk_box_pack_end (GTK_BOX (box2), sound_applet, FALSE, FALSE, 6); gtk_box_pack_end (GTK_BOX (box1), box2, TRUE, TRUE, 0); gtk_widget_show_all (box1); -- cgit v1.3.1