summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 6189fb7..b737cf3 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -2634,6 +2634,7 @@ static GObject *trg_main_window_constructor(GType type,
GtkWidget *w;
GtkWidget *outerVbox;
GtkWidget *toolbarHbox;
+ GtkWidget *outerAlignment;
GtkIconTheme *theme;
gint width, height, pos;
gboolean tray;
@@ -2695,8 +2696,15 @@ static GObject *trg_main_window_constructor(GType type,
g_signal_connect(priv->torrentTreeView, "row-activated",
G_CALLBACK(torrent_tv_onRowActivated), self);
- outerVbox = trg_vbox_new(FALSE, 0);
- gtk_container_add(GTK_CONTAINER(self), outerVbox);
+ outerVbox = trg_vbox_new(FALSE, 6);
+
+ /* Create a GtkAlignment to hold the outerVbox making possible
+ * some padding. */
+ outerAlignment = gtk_alignment_new (0.5f, 0.5f, 1.0f, 1.0f);
+ gtk_alignment_set_padding (GTK_ALIGNMENT (outerAlignment), 0, 0, 6, 6);
+ gtk_container_add (GTK_CONTAINER (outerAlignment), outerVbox);
+
+ gtk_container_add(GTK_CONTAINER(self), outerAlignment);
priv->menuBar = trg_main_window_menu_bar_new(self);
gtk_box_pack_start(GTK_BOX(outerVbox), GTK_WIDGET(priv->menuBar),
@@ -2887,3 +2895,4 @@ TrgMainWindow *trg_main_window_new(TrgClient * tc, gboolean minonstart)
return g_object_new(TRG_TYPE_MAIN_WINDOW, "trg-client", tc,
"min-on-start", minonstart, NULL);
}
+