Global settings margin
[modest] / src / hildon2 / modest-default-account-settings-dialog.c
index 65dfcc6..e9a950e 100644 (file)
@@ -505,6 +505,10 @@ on_button_delete (GtkButton *button, gpointer user_data)
                                                       priv->account_name, 
                                                       (const gchar *) account_title);
        g_free (account_title);
+
+       /* Close window */
+       if (removed)
+               gtk_widget_destroy (GTK_WIDGET (self));
 }
 
 static GtkWidget*
@@ -728,7 +732,7 @@ enable_widget_for_checkbutton (GtkWidget *widget, GtkButton* button)
 {
        g_signal_connect (G_OBJECT (button), "clicked",
                G_CALLBACK (on_check_button_clicked), widget);
-       
+
        /* Set the starting sensitivity: */
        on_check_button_clicked (button, widget);
 }
@@ -746,10 +750,9 @@ on_button_outgoing_smtp_servers (GtkButton *button, gpointer user_data)
        smtp_win = modest_connection_specific_smtp_window_new ();
        modest_connection_specific_smtp_window_fill_with_connections (smtp_win, priv->account_manager);
 
-       /* Show the window: */  
+       /* Show the window: */
        modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), GTK_WINDOW (smtp_win), GTK_WINDOW (self));
        gtk_widget_show (GTK_WIDGET (smtp_win));
-       priv->modified = TRUE;
 }
 
 static void
@@ -771,13 +774,13 @@ create_page_outgoing (ModestDefaultAccountSettingsDialog *self)
        GtkWidget *box = gtk_vbox_new (FALSE, MODEST_MARGIN_NONE);
 
        priv = MODEST_DEFAULT_ACCOUNT_SETTINGS_DIALOG_GET_PRIVATE (self);
-       
+
        /* Create a size group to be used by all captions.
         * Note that HildonCaption does not create a default size group if we do not specify one.
         * We use GTK_SIZE_GROUP_HORIZONTAL, so that the widths are the same. */
        GtkSizeGroup *title_sizegroup = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
        GtkSizeGroup *value_sizegroup = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
-        
        /* The outgoing server widgets: */
        if (!priv->entry_outgoingserver)
                priv->entry_outgoingserver = 
@@ -1103,7 +1106,7 @@ modest_default_account_settings_dialog_init (ModestDefaultAccountSettingsDialog
     /* Add the buttons: */
        gtk_dialog_add_button (GTK_DIALOG(self), _HL("wdgt_bd_save"), GTK_RESPONSE_OK);
 
-    gtk_window_set_default_size (GTK_WINDOW (self), -1, 340);
+    gtk_window_set_default_size (GTK_WINDOW (self), -1, MODEST_DIALOG_WINDOW_MAX_HEIGHT);
 
     /* Connect to the dialog's "response" and "delete-event" signals */
     g_signal_connect (G_OBJECT (self), "response", G_CALLBACK (on_response), self);