2007-07-23 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Mon, 23 Jul 2007 08:18:21 +0000 (08:18 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Mon, 23 Jul 2007 08:18:21 +0000 (08:18 +0000)
* src/maemo/modest-account-settings-dialog.c:
(create_page_outgoing): Put this page in a GtkScrolledWindow,
matching the UI mock-up in the UI spec, and allowing access
to all widgets even when the on-screen keyboard is active.

pmo-trunk-r2766

ChangeLog2
src/maemo/modest-account-settings-dialog.c

index 862cfbd..0dcfbee 100644 (file)
@@ -1,4 +1,11 @@
-2007-07-16  Murray Cumming  <murrayc@murrayc.com>
+2007-07-23  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/maemo/modest-account-settings-dialog.c:
+       (create_page_outgoing): Put this page in a GtkScrolledWindow, 
+       matching the UI mock-up in the UI spec, and allowing access 
+       to all widgets even when the on-screen keyboard is active.
+
+2007-07-23  Murray Cumming  <murrayc@murrayc.com>
 
        Reverted this previous commit from Johannes, 
        because the scrollbars are always visible and because 
 
        Reverted this previous commit from Johannes, 
        because the scrollbars are always visible and because 
index 98b9501..cea9426 100644 (file)
@@ -698,6 +698,12 @@ static GtkWidget* create_page_outgoing (ModestAccountSettingsDialog *self)
 {
        GtkWidget *box = gtk_vbox_new (FALSE, MODEST_MARGIN_NONE);
        
 {
        GtkWidget *box = gtk_vbox_new (FALSE, MODEST_MARGIN_NONE);
        
+       /* Put it all in a scrolled window, so that all widgets can be 
+        * accessed even when the on-screen keyboard is visible: */
+       GtkWidget *scrollwin = gtk_scrolled_window_new(NULL, NULL);
+       gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), 
+               GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+       
        /* 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. */
        /* 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. */
@@ -826,8 +832,10 @@ static GtkWidget* create_page_outgoing (ModestAccountSettingsDialog *self)
                G_CALLBACK (on_button_outgoing_smtp_servers), self);
                
        gtk_widget_show (GTK_WIDGET (box));
                G_CALLBACK (on_button_outgoing_smtp_servers), self);
                
        gtk_widget_show (GTK_WIDGET (box));
+       gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW(scrollwin), box);
+       gtk_widget_show(scrollwin);
        
        
-       return GTK_WIDGET (box);
+       return GTK_WIDGET (scrollwin);
 }
 
 static gboolean
 }
 
 static gboolean