[gnome-online-accounts/wip/rishi/feaneron-review] oauth, oauth2: Remove borders from widgets



commit b303bf3a22fc94fdda7d40c4399dd23b9b5307d6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Nov 10 11:08:05 2016 -0200

    oauth, oauth2: Remove borders from widgets
    
    The OAuth and OAuth2 providers add borders around the web view, making
    it not integrate very well with the consumer of the widgets.
    
    Fix that by removing the borders and margins.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774205

 src/goabackend/goaoauth2provider.c |    2 --
 src/goabackend/goaoauthprovider.c  |    2 --
 2 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/goabackend/goaoauth2provider.c b/src/goabackend/goaoauth2provider.c
index 7e625b0..533295c 100644
--- a/src/goabackend/goaoauth2provider.c
+++ b/src/goabackend/goaoauth2provider.c
@@ -1039,8 +1039,6 @@ get_tokens_and_identity (GoaOAuth2Provider  *provider,
   goa_utils_set_dialog_title (GOA_PROVIDER (provider), dialog, add_account);
 
   grid = gtk_grid_new ();
-  gtk_container_set_border_width (GTK_CONTAINER (grid), 5);
-  gtk_widget_set_margin_bottom (grid, 6);
   gtk_orientable_set_orientation (GTK_ORIENTABLE (grid), GTK_ORIENTATION_VERTICAL);
   gtk_grid_set_row_spacing (GTK_GRID (grid), 12);
   gtk_container_add (GTK_CONTAINER (vbox), grid);
diff --git a/src/goabackend/goaoauthprovider.c b/src/goabackend/goaoauthprovider.c
index a9a826e..a32aadd 100644
--- a/src/goabackend/goaoauthprovider.c
+++ b/src/goabackend/goaoauthprovider.c
@@ -778,8 +778,6 @@ get_tokens_and_identity (GoaOAuthProvider *provider,
   goa_utils_set_dialog_title (GOA_PROVIDER (provider), dialog, add_account);
 
   grid = gtk_grid_new ();
-  gtk_container_set_border_width (GTK_CONTAINER (grid), 5);
-  gtk_widget_set_margin_bottom (grid, 6);
   gtk_orientable_set_orientation (GTK_ORIENTABLE (grid), GTK_ORIENTATION_VERTICAL);
   gtk_grid_set_row_spacing (GTK_GRID (grid), 12);
   gtk_container_add (GTK_CONTAINER (vbox), grid);


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