[nautilus] Don't handle search for desktop windows
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Don't handle search for desktop windows
- Date: Sat, 21 Jul 2012 15:10:32 +0000 (UTC)
commit a89d1c27954abe07417171bc261bf1d99102e5f4
Author: William Jon McCann <jmccann redhat com>
Date: Fri Jul 20 23:31:54 2012 -0400
Don't handle search for desktop windows
https://bugzilla.gnome.org/show_bug.cgi?id=680110
src/nautilus-window-slot.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index feec424..5a38c6b 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -27,11 +27,11 @@
#include "nautilus-window-slot.h"
#include "nautilus-actions.h"
-#include "nautilus-desktop-window.h"
#include "nautilus-toolbar.h"
#include "nautilus-floating-bar.h"
#include "nautilus-window-private.h"
#include "nautilus-window-manage-views.h"
+#include "nautilus-desktop-window.h"
#include <glib/gi18n.h>
@@ -56,6 +56,11 @@ gboolean
nautilus_window_slot_handle_event (NautilusWindowSlot *slot,
GdkEventKey *event)
{
+ NautilusWindow *window;
+
+ window = nautilus_window_slot_get_window (slot);
+ if (NAUTILUS_IS_DESKTOP_WINDOW (window))
+ return FALSE;
return nautilus_query_editor_handle_event (slot->query_editor, event);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]