[gnome-online-accounts] providers: Improve spacing



commit e340eb0022582af47681e9913eede0b3c7fbca78
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Feb 16 15:22:33 2017 -0200

    providers: Improve spacing
    
    Per Allan's request, improve the spacing between UI elements.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778779

 src/goabackend/goaprovider.c |    1 +
 src/goabackend/goautils.c    |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index 8985609..c78f818 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -1628,6 +1628,7 @@ goa_util_add_row_switch_from_keyfile_with_blurb (GtkGrid      *grid,
 
       label = gtk_label_new_with_mnemonic (blurb);
       gtk_label_set_mnemonic_widget (GTK_LABEL (label), switch_);
+      gtk_label_set_width_chars (GTK_LABEL (label), 18);
       gtk_label_set_xalign (GTK_LABEL (label), 0.0);
       gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
     }
diff --git a/src/goabackend/goautils.c b/src/goabackend/goautils.c
index ab90e8c..a91034d 100644
--- a/src/goabackend/goautils.c
+++ b/src/goabackend/goautils.c
@@ -119,6 +119,8 @@ goa_utils_account_add_attention_needed (GoaClient *client, GoaObject *object, Go
   grid = gtk_grid_new ();
   gtk_orientable_set_orientation (GTK_ORIENTABLE (grid), GTK_ORIENTATION_HORIZONTAL);
   gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
+  gtk_widget_set_margin_top (grid, 18);
+  gtk_widget_set_margin_bottom (grid, 6);
   gtk_box_pack_end (vbox, grid, FALSE, TRUE, 0);
 
   image = gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_SMALL_TOOLBAR);
@@ -129,6 +131,7 @@ goa_utils_account_add_attention_needed (GoaClient *client, GoaObject *object, Go
   gtk_widget_set_halign (labels_grid, GTK_ALIGN_FILL);
   gtk_widget_set_hexpand (labels_grid, TRUE);
   gtk_widget_set_valign (labels_grid, GTK_ALIGN_CENTER);
+  gtk_widget_set_margin_end (labels_grid, 12);
   gtk_orientable_set_orientation (GTK_ORIENTABLE (labels_grid), GTK_ORIENTATION_VERTICAL);
   gtk_grid_set_column_spacing (GTK_GRID (labels_grid), 0);
   gtk_container_add (GTK_CONTAINER (grid), labels_grid);


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