diff options
| author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2013-11-25 10:49:32 +0100 |
|---|---|---|
| committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2013-11-25 10:49:32 +0100 |
| commit | 01c31060d2e3e2e96788e2a76d97ba334905ae05 (patch) | |
| tree | 56f0c345f582e435b9af5f66d75819a44c93510e /shell/gtk-shell.c | |
| parent | b6a530e7ff1be463be5acf29ea9c5fc32ebaa52c (diff) | |
| download | graynard-01c31060d2e3e2e96788e2a76d97ba334905ae05.tar.gz graynard-01c31060d2e3e2e96788e2a76d97ba334905ae05.zip | |
Add a clock to the panel
Diffstat (limited to 'shell/gtk-shell.c')
| -rw-r--r-- | shell/gtk-shell.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/gtk-shell.c b/shell/gtk-shell.c index 4467095..dc94591 100644 --- a/shell/gtk-shell.c +++ b/shell/gtk-shell.c @@ -6,6 +6,7 @@ #include "desktop-shell-client-protocol.h" #include "launcher-grid.h" +#include "clock.h" extern char **environ; /* defined by libc */ @@ -131,7 +132,9 @@ panel_create(struct desktop *desktop) gtk_box_pack_start (GTK_BOX(box1), button, FALSE, FALSE, 0); gtk_widget_show (button); - gtk_widget_show (box1); + gtk_box_pack_end (GTK_BOX(box1), weston_gtk_clock_new (), FALSE, FALSE, 6); + + gtk_widget_show_all (box1); gdk_window = gtk_widget_get_window(panel->window); gdk_wayland_window_set_use_custom_surface(gdk_window); |
