summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2012-03-12 20:28:11 +0100
committerDebarshi Ray <debarshir@gnome.org>2012-04-19 17:04:52 +0200
commitd6092763436100b22dcba7dbd9d90b8f4680b405 (patch)
tree5a9b26a7365d688934f00b6d6f70322e4fdcba99
parent07866aa933408219016195ae4fda50b94b638dd8 (diff)
downloadgnome-control-center-d6092763436100b22dcba7dbd9d90b8f4680b405.tar.gz
online-accounts: Fix spacing and alignment when showing accounts
Implemented design: http://ur1.ca/8m05c https://live.gnome.org/Design/SystemSettings/OnlineAccounts Fixes: https://bugzilla.gnome.org/671980
-rw-r--r--panels/online-accounts/cc-online-accounts-panel.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/panels/online-accounts/cc-online-accounts-panel.c b/panels/online-accounts/cc-online-accounts-panel.c
index 75398800c..7891203da 100644
--- a/panels/online-accounts/cc-online-accounts-panel.c
+++ b/panels/online-accounts/cc-online-accounts-panel.c
@@ -323,6 +323,7 @@ show_page_account (GoaPanel *panel,
{
GList *children;
GList *l;
+ GtkWidget *alignment;
GtkWidget *table;
GtkWidget *bar;
GtkWidget *label;
@@ -358,8 +359,7 @@ show_page_account (GoaPanel *panel,
table = gtk_table_new (3, 2, FALSE);
gtk_table_set_row_spacings (GTK_TABLE (table), 0);
- gtk_table_set_col_spacings (GTK_TABLE (table), 4);
- gtk_box_pack_start (GTK_BOX (panel->accounts_vbox), table, FALSE, TRUE, 0);
+ gtk_table_set_col_spacings (GTK_TABLE (table), 12);
if (provider != NULL)
{
@@ -370,6 +370,10 @@ show_page_account (GoaPanel *panel,
GTK_TABLE (table));
}
+ alignment = gtk_alignment_new (0.5, 0.0, 0.0, 0.0);
+ gtk_container_add (GTK_CONTAINER (alignment), table);
+ gtk_box_pack_start (GTK_BOX (panel->accounts_vbox), alignment, FALSE, TRUE, 0);
+
gtk_widget_show_all (panel->accounts_vbox);
if (provider != NULL)