[nautilus] Use the open with submenu when there are multiple options
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Use the open with submenu when there are multiple options
- Date: Mon, 2 Jul 2012 22:58:57 +0000 (UTC)
commit 7d869c0fd4bcdae0cd40e08e2d4561e55be6f701
Author: William Jon McCann <jmccann redhat com>
Date: Mon Jul 2 11:54:39 2012 -0400
Use the open with submenu when there are multiple options
Put all extra apps in the open with submenu.
src/nautilus-view.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index aa7d56f..7acda78 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -4597,12 +4597,8 @@ reset_open_with_menu (NautilusView *view, GList *selection)
num_applications = g_list_length (applications);
- if (file_list_all_are_folders (selection)) {
- submenu_visible = (num_applications > 2);
- } else {
- submenu_visible = (num_applications > 3);
- }
-
+ submenu_visible = (num_applications > 1);
+
for (node = applications, index = 0; node != NULL; node = node->next, index++) {
GAppInfo *application;
char *menu_path;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]