summaryrefslogtreecommitdiff
path: root/shell/gtk-shell.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2013-12-13 10:32:14 +0100
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2014-01-14 15:51:17 +0100
commitdd3ed8035185983d383eaff223985d6832f84db5 (patch)
treecd56c8ead38caa3ad210cfdab7f4797ccc0e08c0 /shell/gtk-shell.c
parent2b7e367207f18a4e965e0bf1105e3af5b05ce7d6 (diff)
downloadgraynard-dd3ed8035185983d383eaff223985d6832f84db5.tar.gz
graynard-dd3ed8035185983d383eaff223985d6832f84db5.zip
Add a volume control widget to the panel
Diffstat (limited to 'shell/gtk-shell.c')
-rw-r--r--shell/gtk-shell.c5
1 files changed, 5 insertions, 0 deletions
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);