[gnome-control-center] online-accounts: Fix spacing and alignment when showing accounts



commit d6092763436100b22dcba7dbd9d90b8f4680b405
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Mar 12 20:28:11 2012 +0100

    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

 panels/online-accounts/cc-online-accounts-panel.c |    8 ++++++--
 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 7539880..7891203 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]