diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-09-01 10:37:38 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2010-09-01 10:37:38 +0100 |
commit | 45266fc088ae63a1f17c4588e6a5fffc22a10a80 (patch) | |
tree | b6857af702bbc6cae036a1597851f87661becb2f | |
parent | dfe8758a5a974d3bbc58ad9513008ec8ce64e77e (diff) | |
download | nautilus-sendto-45266fc088ae63a1f17c4588e6a5fffc22a10a80.tar.gz |
Add a contextual menu for non-local files
https://bugzilla.gnome.org/show_bug.cgi?id=627040
-rw-r--r-- | src/nautilus-nste.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/nautilus-nste.c b/src/nautilus-nste.c index acd6c9e..b7e7ae7 100644 --- a/src/nautilus-nste.c +++ b/src/nautilus-nste.c @@ -57,7 +57,7 @@ sendto_callback (NautilusMenuItem *item, g_spawn_command_line_async (cmd->str, NULL); g_string_free (cmd, TRUE); -} +} static GList * nautilus_nste_get_file_items (NautilusMenuProvider *provider, @@ -65,26 +65,12 @@ nautilus_nste_get_file_items (NautilusMenuProvider *provider, GList *files) { GList *items = NULL; - GList *scan; gboolean one_item; NautilusMenuItem *item; if (files == NULL) return NULL; - for (scan = files; scan; scan = scan->next) { - NautilusFileInfo *file = scan->data; - gchar *scheme; - gboolean local; - - scheme = nautilus_file_info_get_uri_scheme (file); - local = strncmp (scheme, "file", 4) == 0; - g_free (scheme); - - if (!local) - return NULL; - } - one_item = (files != NULL) && (files->next == NULL); if (one_item && !nautilus_file_info_is_directory ((NautilusFileInfo *)files->data)) { |