From bd528f571b2c67535bf3bbbefceab837cb3ed68f Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Mon, 23 Jul 2007 08:18:21 +0000 Subject: [PATCH] 2007-07-23 Murray Cumming * 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 | 9 ++++++++- src/maemo/modest-account-settings-dialog.c | 10 +++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog2 b/ChangeLog2 index 862cfbd..0dcfbee 100644 --- a/ChangeLog2 +++ b/ChangeLog2 @@ -1,4 +1,11 @@ -2007-07-16 Murray Cumming +2007-07-23 Murray Cumming + + * 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 Reverted this previous commit from Johannes, because the scrollbars are always visible and because diff --git a/src/maemo/modest-account-settings-dialog.c b/src/maemo/modest-account-settings-dialog.c index 98b9501..cea9426 100644 --- a/src/maemo/modest-account-settings-dialog.c +++ b/src/maemo/modest-account-settings-dialog.c @@ -698,6 +698,12 @@ static GtkWidget* create_page_outgoing (ModestAccountSettingsDialog *self) { 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. */ @@ -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)); + 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 -- 1.7.9.5