[nautilus] Rename entire folder name
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Rename entire folder name
- Date: Mon, 27 Aug 2012 13:35:33 +0000 (UTC)
commit 51da82e9e3fc434475a996c861cb814c27240252
Author: William Jon McCann <jmccann redhat com>
Date: Sun Aug 26 10:36:42 2012 -0400
Rename entire folder name
Not just the part before the "."
https://bugzilla.gnome.org/show_bug.cgi?id=664266
src/nautilus-list-view.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index e763929..289912c 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -2638,7 +2638,6 @@ nautilus_list_view_start_renaming_file (NautilusView *view,
NautilusListView *list_view;
GtkTreeIter iter;
GtkTreePath *path;
- gint start_offset, end_offset;
list_view = NAUTILUS_LIST_VIEW (view);
@@ -2679,8 +2678,13 @@ nautilus_list_view_start_renaming_file (NautilusView *view,
/* set cursor also triggers editing-started, where we save the editable widget */
if (list_view->details->editable_widget != NULL) {
- eel_filename_get_rename_region (list_view->details->original_name,
- &start_offset, &end_offset);
+ int start_offset = 0;
+ int end_offset = -1;
+
+ if (!select_all) {
+ eel_filename_get_rename_region (list_view->details->original_name,
+ &start_offset, &end_offset);
+ }
gtk_editable_select_region (GTK_EDITABLE (list_view->details->editable_widget),
start_offset, end_offset);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]