summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Leonardo Robol <leo@robol.it>2012-09-08 11:20:35 +0200
committerGravatar Leonardo Robol <leo@robol.it>2012-09-08 11:20:35 +0200
commita14c409e965cf8249bcd633c2c86334a7492b648 (patch)
treeb3b64e17c3d1483f4b1e673558556e9e481b3140 /src/trg-main-window.c
parent673136a790b3198334caa49f0ba3537e5011aad4 (diff)
parent5a257acef51e885a8e90ad17edf2cebc582de9a0 (diff)
Merge branch 'ui'
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 4654266..a39138c 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -2639,6 +2639,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;
@@ -2700,8 +2701,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),
@@ -2892,3 +2900,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);
}
+