summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Leonardo Robol <leo@robol.it>2012-09-08 10:54:28 +0200
committerGravatar Leonardo Robol <leo@robol.it>2012-09-08 10:54:28 +0200
commit5a257acef51e885a8e90ad17edf2cebc582de9a0 (patch)
tree91b9d488268169a6eda7f72ac9325e34622d16f8
parentc810a1e074736711bb70ed3b2910ef0147541899 (diff)
Added some padding.
-rw-r--r--src/trg-main-window.c13
-rw-r--r--src/trg-toolbar.c3
2 files changed, 13 insertions, 3 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);
}
+
diff --git a/src/trg-toolbar.c b/src/trg-toolbar.c
index 139f9db..fb81364 100644
--- a/src/trg-toolbar.c
+++ b/src/trg-toolbar.c
@@ -188,12 +188,13 @@ static GObject *trg_toolbar_constructor(GType type,
gtk_toolbar_set_icon_size(GTK_TOOLBAR(obj),
GTK_ICON_SIZE_LARGE_TOOLBAR);
- gtk_toolbar_set_style(GTK_TOOLBAR(obj), GTK_TOOLBAR_ICONS);
+ gtk_toolbar_set_style(GTK_TOOLBAR(obj), GTK_TOOLBAR_BOTH_HORIZ);
priv->tb_connect =
GTK_WIDGET(gtk_menu_tool_button_new_from_stock(GTK_STOCK_CONNECT));
gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(priv->tb_connect),
_("Connect"));
+ gtk_tool_item_set_is_important (GTK_TOOL_ITEM (priv->tb_connect), TRUE);
menu =
trg_menu_bar_file_connect_menu_new(priv->main_window, priv->prefs);
gtk_menu_tool_button_set_menu(GTK_MENU_TOOL_BUTTON(priv->tb_connect),