[gnome-online-accounts] telepathy: improve the spacing in the various dialogs



commit c9878e5e9ab02b0e0b309340c23383e08ba22f1d
Author: Marco Barisione <marco barisione collabora co uk>
Date:   Thu Aug 22 14:14:55 2013 +0100

    telepathy: improve the spacing in the various dialogs
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696267

 src/goabackend/goatelepathyprovider.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goatelepathyprovider.c b/src/goabackend/goatelepathyprovider.c
index 6b87b19..c9aeab7 100644
--- a/src/goabackend/goatelepathyprovider.c
+++ b/src/goabackend/goatelepathyprovider.c
@@ -195,6 +195,15 @@ out:
   return tp_account;
 }
 
+static void
+set_action_area_spacing (GtkDialog *dialog)
+{
+  GtkWidget *action_area;
+
+  action_area = gtk_dialog_get_action_area (dialog);
+  g_object_set (action_area, "margin-top", 12, NULL);
+}
+
 /* ---------------------------------------------------------------------------------------------------- */
 
 static const gchar *
@@ -440,6 +449,8 @@ add_account (GoaProvider  *provider,
   g_signal_connect (account_widget, "close",
       G_CALLBACK (account_widget_close_cb), &data);
 
+  set_action_area_spacing (dialog);
+
   /* The dialog now contains a lot of empty space between the account widget
    * and the buttons. We force it's vertical size to be just right to fit the
    * widget. */
@@ -533,6 +544,7 @@ edit_connection_parameters (GoaObject  *goa_object,
       GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
       NULL, NULL);
   gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
+  set_action_area_spacing (GTK_DIALOG (dialog));
 
   account_widget = tpaw_account_widget_new_for_protocol (settings,
       GTK_BOX (gtk_dialog_get_action_area (GTK_DIALOG (dialog))),
@@ -634,6 +646,7 @@ edit_personal_details (GoaObject  *goa_object,
       GTK_STOCK_OK, GTK_RESPONSE_OK,
       NULL);
   gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
+  set_action_area_spacing (GTK_DIALOG (dialog));
 
   user_info = tpaw_user_info_new (tp_account);
   gtk_widget_show (user_info);


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