diff options
| author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2013-10-24 01:49:51 +0200 |
|---|---|---|
| committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2013-10-26 02:00:00 +0200 |
| commit | 315cc4692c2f5c3defa86630d56ebe04d2b6b2a5 (patch) | |
| tree | 1be7e6bae11b831368189efd259e340a1325309f /shell/gtk-shell.c | |
| parent | 33a812a33d084a426eb662aa355b31d37c1babe8 (diff) | |
| download | graynard-315cc4692c2f5c3defa86630d56ebe04d2b6b2a5.tar.gz graynard-315cc4692c2f5c3defa86630d56ebe04d2b6b2a5.zip | |
Make the grid actually show real launchers
Diffstat (limited to 'shell/gtk-shell.c')
| -rw-r--r-- | shell/gtk-shell.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/shell/gtk-shell.c b/shell/gtk-shell.c index f0d7f4c..6f2bdef 100644 --- a/shell/gtk-shell.c +++ b/shell/gtk-shell.c @@ -5,6 +5,7 @@ #include <gdk/gdkwayland.h> #include "desktop-shell-client-protocol.h" +#include "launcher-grid.h" extern char **environ; /* defined by libc */ @@ -68,10 +69,8 @@ static const struct desktop_shell_listener listener = { static void launcher_grid_create (struct desktop *desktop) { - GdkWindow *gdk_window; struct element *launcher_grid; GtkWidget *grid; - GtkWidget *launcher; launcher_grid = malloc (sizeof *launcher_grid); memset (launcher_grid, 0, sizeof *launcher_grid); @@ -82,11 +81,7 @@ launcher_grid_create (struct desktop *desktop) gtk_window_set_decorated(GTK_WINDOW(launcher_grid->window), FALSE); gtk_widget_realize(launcher_grid->window); - grid = gtk_grid_new (); - - launcher = gtk_image_new_from_icon_name ("gnome-terminal", GTK_ICON_SIZE_LARGE_TOOLBAR); - - gtk_container_add (GTK_CONTAINER (grid), launcher); + grid = launcher_grid_new (); gtk_container_add (GTK_CONTAINER (launcher_grid->window), grid); |
