From: Sergio Villar Senin Date: Mon, 25 Aug 2008 09:11:31 +0000 (+0000) Subject: * Fixes NB#87754, the header view grabs the focus in simple style view X-Git-Tag: git_migration_finished~1213 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=9ab5ffc33414a1db9b753b9e70faae4bee0fe104 * Fixes NB#87754, the header view grabs the focus in simple style view pmo-trunk-r5355 --- diff --git a/src/maemo/modest-main-window.c b/src/maemo/modest-main-window.c index 5025c92..9863af4 100644 --- a/src/maemo/modest-main-window.c +++ b/src/maemo/modest-main-window.c @@ -2206,6 +2206,8 @@ modest_main_window_set_contents_style (ModestMainWindow *self, wrap_in_scrolled_window (priv->contents_widget, GTK_WIDGET (priv->header_view)); modest_maemo_set_thumbable_scrollbar (GTK_SCROLLED_WINDOW(priv->contents_widget), TRUE); + if (priv->style == MODEST_MAIN_WINDOW_STYLE_SIMPLE) + gtk_widget_grab_focus (GTK_WIDGET (priv->header_view)); break; case MODEST_MAIN_WINDOW_CONTENTS_STYLE_DETAILS: { @@ -2225,12 +2227,16 @@ modest_main_window_set_contents_style (ModestMainWindow *self, modest_maemo_set_thumbable_scrollbar (GTK_SCROLLED_WINDOW(priv->contents_widget), FALSE); } + if (priv->style == MODEST_MAIN_WINDOW_STYLE_SIMPLE) + gtk_widget_grab_focus (GTK_WIDGET (priv->details_widget)); break; } case MODEST_MAIN_WINDOW_CONTENTS_STYLE_EMPTY: wrap_in_scrolled_window (priv->contents_widget, GTK_WIDGET (priv->empty_view)); modest_maemo_set_thumbable_scrollbar (GTK_SCROLLED_WINDOW(priv->contents_widget), FALSE); + if (priv->style == MODEST_MAIN_WINDOW_STYLE_SIMPLE) + gtk_widget_grab_focus (GTK_WIDGET (priv->empty_view)); break; default: g_return_if_reached ();