diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-06-29 10:04:54 +0000 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-06-29 10:04:54 +0000 |
| commit | af788b560d167a873036b0fae04f2a91f2cda9e5 (patch) | |
| tree | 51dece036218128dca61cae3f1ab3d4d13ce561d | |
| parent | f234933f0b9f9648d504543f3674f9e372406267 (diff) | |
| download | graynard-af788b560d167a873036b0fae04f2a91f2cda9e5.tar.gz graynard-af788b560d167a873036b0fae04f2a91f2cda9e5.zip | |
move favorite launcher to bottom
| -rw-r--r-- | shell/favorites.c | 2 | ||||
| -rw-r--r-- | shell/maynard.c | 7 | ||||
| -rw-r--r-- | shell/panel.c | 4 | ||||
| -rw-r--r-- | shell/panel.h | 4 |
4 files changed, 7 insertions, 10 deletions
diff --git a/shell/favorites.c b/shell/favorites.c index 7f15e76..eaa2f77 100644 --- a/shell/favorites.c +++ b/shell/favorites.c @@ -155,6 +155,6 @@ GtkWidget * maynard_favorites_new (void) { return g_object_new (MAYNARD_TYPE_FAVORITES, - "orientation", GTK_ORIENTATION_VERTICAL, + "orientation", GTK_ORIENTATION_HORIZONTAL, NULL); } diff --git a/shell/maynard.c b/shell/maynard.c index 351076d..e2f5c3b 100644 --- a/shell/maynard.c +++ b/shell/maynard.c @@ -90,18 +90,15 @@ desktop_shell_configure (void *data, int32_t width, int32_t height) { struct desktop *desktop = data; - int window_height; gtk_widget_set_size_request (desktop->background->window, width, height); - /* TODO: make this height a little nicer */ - window_height = height * MAYNARD_PANEL_HEIGHT_RATIO; gtk_window_resize (GTK_WINDOW (desktop->panel->window), - MAYNARD_PANEL_WIDTH, window_height); + width, MAYNARD_PANEL_HEIGHT); shell_helper_move_surface (desktop->helper, desktop->panel->surface, - 0, (height - window_height) / 2); + 0, height - MAYNARD_PANEL_HEIGHT); //TODO to bottom desktop_shell_desktop_ready (desktop->shell); diff --git a/shell/panel.c b/shell/panel.c index 5f7adfa..60f2960 100644 --- a/shell/panel.c +++ b/shell/panel.c @@ -94,7 +94,7 @@ maynard_panel_constructed (GObject *object) "maynard-panel"); /* main vbox */ - main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + main_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_add (GTK_CONTAINER (self), main_box); /* GtkBoxes seem to eat up enter/leave events, so let's use an event @@ -103,7 +103,7 @@ maynard_panel_constructed (GObject *object) gtk_box_pack_start (GTK_BOX (main_box), ebox, FALSE, FALSE, 0); widget_connect_enter_signal (self, ebox); - menu_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + menu_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (ebox), menu_box); /* favorites */ diff --git a/shell/panel.h b/shell/panel.h index 36c7660..2ec9e02 100644 --- a/shell/panel.h +++ b/shell/panel.h @@ -47,8 +47,8 @@ struct MaynardPanelClass GtkWindowClass parent_class; }; -#define MAYNARD_PANEL_WIDTH 56 -#define MAYNARD_PANEL_HEIGHT_RATIO 1 +#define MAYNARD_PANEL_HEIGHT 56 +#define MAYNARD_PANEL_WIDTH_RATIO 1 typedef enum { MAYNARD_PANEL_BUTTON_NONE, |
