* src/maemo/modest-msg-view-window.c:
authorJose Dapena Paz <jdapena@igalia.com>
Fri, 14 Sep 2007 13:57:24 +0000 (13:57 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Fri, 14 Sep 2007 13:57:24 +0000 (13:57 +0000)
* Now successful search changes focus to view in order to remove
  the vkb (fixes NB#59519).

pmo-trunk-r3309

src/maemo/modest-msg-view-window.c

index ce7c4c4..6b76712 100644 (file)
@@ -1278,12 +1278,16 @@ modest_msg_view_window_find_toolbar_search (GtkWidget *widget,
                        hildon_banner_show_information (NULL, NULL, dgettext("hildon-libs", "ckct_ib_find_no_matches"));
                        g_free (priv->last_search);
                        priv->last_search = NULL;
-               } 
+               } else {
+                       modest_msg_view_grab_focus (MODEST_MSG_VIEW (priv->msg_view));
+               }
        } else {
                if (!modest_msg_view_search_next (MODEST_MSG_VIEW (priv->msg_view))) {
                        hildon_banner_show_information (NULL, NULL, dgettext("hildon-libs", "ckct_ib_find_search_complete"));
                        g_free (priv->last_search);
                        priv->last_search = NULL;
+               } else {
+                       modest_msg_view_grab_focus (MODEST_MSG_VIEW (priv->msg_view));
                }
        }