[nautilus] Don't grab focus away from the search entry box
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Don't grab focus away from the search entry box
- Date: Fri, 20 Jul 2012 00:31:45 +0000 (UTC)
commit edab17d713476b31029e6db85256e1ae0dd44f20
Author: William Jon McCann <jmccann redhat com>
Date: Thu Jul 19 18:03:49 2012 -0400
Don't grab focus away from the search entry box
https://bugzilla.gnome.org/show_bug.cgi?id=680159
src/nautilus-window.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 3e8ccdc..994a09e 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1849,6 +1849,7 @@ nautilus_window_connect_content_view (NautilusWindow *window,
NautilusView *view)
{
NautilusWindowSlot *slot;
+ NautilusDirectory *directory;
g_assert (NAUTILUS_IS_WINDOW (window));
g_assert (NAUTILUS_IS_VIEW (view));
@@ -1870,9 +1871,14 @@ nautilus_window_connect_content_view (NautilusWindow *window,
*/
if (slot->pending_location == NULL) {
nautilus_window_load_view_as_menus (window);
- }
+ } else {
+ directory = nautilus_directory_get (slot->pending_location);
+ if (!NAUTILUS_IS_SEARCH_DIRECTORY (directory)) {
+ nautilus_view_grab_focus (view);
+ }
- nautilus_view_grab_focus (view);
+ nautilus_directory_unref (directory);
+ }
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]