diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-25 18:06:33 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-25 19:53:02 +0000 |
commit | 286429b1aa72ee964ba0cac4b79c754859b1c60a (patch) | |
tree | 33c01e6792fd99a430be126c19b9b71947ffd060 /main/nautilus/011-keyboard-navigation.patch | |
parent | 3597c695c8ae4a22da8bd26c363aa8ceae267be3 (diff) | |
download | aports-286429b1aa72ee964ba0cac4b79c754859b1c60a.tar.bz2 aports-286429b1aa72ee964ba0cac4b79c754859b1c60a.tar.xz |
main/nautilus: upgrade to 2.32.2.1
Diffstat (limited to 'main/nautilus/011-keyboard-navigation.patch')
-rw-r--r-- | main/nautilus/011-keyboard-navigation.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/main/nautilus/011-keyboard-navigation.patch b/main/nautilus/011-keyboard-navigation.patch new file mode 100644 index 0000000000..34425ac2ac --- /dev/null +++ b/main/nautilus/011-keyboard-navigation.patch @@ -0,0 +1,43 @@ + +++ nautilus-2.32.2.1/debian/patches/97_keyboard_nav_in_sidebar.patch + +From: Omer Akram <om26er@ubuntu.com> +Author: Stefano Teso <stefano.teso@gmail.com> +Subject: Places-sidebar: allow keyboard navigation with Enter/Space. +Origin: http://git.gnome.org/browse/nautilus/commit/?id=fd03c910a73ba18459e68baaf15e8dd295acd5c1 +Bug: https://bugs.gnome.org/637768 +Bug-Ubuntu: https://launchpad.net/bugs/649993 + +--- a//src/nautilus-places-sidebar.c 2010-12-28 20:54:38.000000000 +0500 ++++ b//src/nautilus-places-sidebar.c 2011-02-28 12:15:11.096777018 +0500 +@@ -2198,6 +2198,30 @@ + + modifiers = gtk_accelerator_get_default_mod_mask (); + ++ if ((event->keyval == GDK_KEY_Return || ++ event->keyval == GDK_KEY_KP_Enter || ++ event->keyval == GDK_KEY_ISO_Enter || ++ event->keyval == GDK_KEY_space)) { ++ ++ GtkTreeModel *model; ++ GtkTreePath *path; ++ NautilusWindowOpenFlags flags = 0; ++ ++ if ((event->state & modifiers) == GDK_SHIFT_MASK) { ++ flags = NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB; ++ } else if ((event->state & modifiers) == GDK_CONTROL_MASK) { ++ flags = NAUTILUS_WINDOW_OPEN_FLAG_NEW_WINDOW; ++ } ++ ++ model = gtk_tree_view_get_model (sidebar->tree_view); ++ gtk_tree_view_get_cursor (sidebar->tree_view, &path, NULL); ++ ++ open_selected_bookmark (sidebar, model, path, flags); ++ ++ gtk_tree_path_free (path); ++ return TRUE; ++ } ++ + if (event->keyval == GDK_Down && + (event->state & modifiers) == GDK_MOD1_MASK) { + return eject_or_unmount_selection (sidebar); |