From 5a257acef51e885a8e90ad17edf2cebc582de9a0 Mon Sep 17 00:00:00 2001 From: Leonardo Robol Date: Sat, 8 Sep 2012 10:54:28 +0200 Subject: Added some padding. --- src/trg-main-window.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/trg-main-window.c') 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); } + -- cgit v1.2.3