[nautilus] Don't use BackSpace to go to parent folder
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Don't use BackSpace to go to parent folder
- Date: Mon, 16 Jul 2012 13:28:03 +0000 (UTC)
commit 2f1c80cc419b7e77972f63b448afe63d37994c74
Author: William Jon McCann <jmccann redhat com>
Date: Mon Jul 16 08:53:29 2012 -0400
Don't use BackSpace to go to parent folder
It interferes with searching, is totally unexpected, and there
are at least 3 other ways to do this already.
src/nautilus-list-view.c | 5 -----
src/nautilus-window.c | 3 ---
2 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 7fceecb..d6b06e7 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -1536,7 +1536,6 @@ create_and_set_up_tree_view (NautilusListView *view)
{
GtkCellRenderer *cell;
GtkTreeViewColumn *column;
- GtkBindingSet *binding_set;
AtkObject *atk_obj;
GList *nautilus_columns;
GList *l;
@@ -1549,10 +1548,6 @@ create_and_set_up_tree_view (NautilusListView *view)
(GDestroyNotify) g_object_unref);
gtk_tree_view_set_enable_search (view->details->tree_view, FALSE);
- /* Don't handle backspace key. It's used to open the parent folder. */
- binding_set = gtk_binding_set_by_class (GTK_WIDGET_GET_CLASS (view->details->tree_view));
- gtk_binding_entry_remove (binding_set, GDK_KEY_BackSpace, 0);
-
view->details->drag_dest =
nautilus_tree_view_drag_dest_new (view->details->tree_view);
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index d896dde..9c222e8 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1452,7 +1452,6 @@ nautilus_window_key_press_event (GtkWidget *widget,
}
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)) {
toggle_toolbar_search_button (window, TRUE);
@@ -2248,8 +2247,6 @@ nautilus_window_class_init (NautilusWindowClass *class)
G_TYPE_NONE, 1, NAUTILUS_TYPE_WINDOW_SLOT);
binding_set = gtk_binding_set_by_class (class);
- gtk_binding_entry_add_signal (binding_set, GDK_KEY_BackSpace, 0,
- "go-up", 0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_F5, 0,
"reload", 0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_slash, 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]