[nautilus-sendto] plugins: Tweak packing filename
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sendto] plugins: Tweak packing filename
- Date: Thu, 4 Nov 2010 17:29:56 +0000 (UTC)
commit 6e7b65343f3fd5be80517996a825ce09518aeda5
Author: Bastien Nocera <hadess hadess net>
Date: Thu Nov 4 17:17:59 2010 +0000
plugins: Tweak packing filename
Don't stop the common filenames on a dash or underscore.
src/plugins/nautilus-sendto-packer.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/nautilus-sendto-packer.c b/src/plugins/nautilus-sendto-packer.c
index 1d4cab5..b6ef788 100644
--- a/src/plugins/nautilus-sendto-packer.c
+++ b/src/plugins/nautilus-sendto-packer.c
@@ -115,7 +115,10 @@ get_filename_from_list (GList *file_list)
g_free (name);
g_free (path);
}
- if (matches == TRUE && cur_char != '\0') {
+ if (matches == TRUE &&
+ cur_char != '\0' &&
+ cur_char != '-' &&
+ cur_char != '_') {
offset++;
common_part = g_string_append_unichar (common_part,
cur_char);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]