[nautilus] window: simplify code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] window: simplify code
- Date: Sat, 14 Jul 2012 19:45:06 +0000 (UTC)
commit 0095655eb436abd608aff834a773b4c16c280069
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Jul 14 15:44:25 2012 -0400
window: simplify code
src/nautilus-window.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 7d5b712..12d2de6 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1449,7 +1449,6 @@ nautilus_window_key_press_event (GtkWidget *widget,
NautilusView *view;
GtkWidget *focus_widget;
int i;
- gboolean handled = FALSE;
window = NAUTILUS_WINDOW (widget);
@@ -1501,8 +1500,7 @@ nautilus_window_key_press_event (GtkWidget *widget,
}
}
- if (!handled &&
- event->keyval != GDK_KEY_slash /* don't steal slash key event, used for "go to" */ &&
+ if (event->keyval != GDK_KEY_slash /* don't steal slash key event, used for "go to" */ &&
event->keyval != GDK_KEY_BackSpace &&
event->keyval != GDK_KEY_Delete) {
if (nautilus_window_slot_handle_event (window->details->active_slot, event)) {
@@ -1511,10 +1509,7 @@ nautilus_window_key_press_event (GtkWidget *widget,
}
}
- if (!handled)
- handled = GTK_WIDGET_CLASS (nautilus_window_parent_class)->key_press_event (widget, event);
-
- return handled;
+ return GTK_WIDGET_CLASS (nautilus_window_parent_class)->key_press_event (widget, event);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]