summaryrefslogtreecommitdiff
path: root/src/file-manager
diff options
context:
space:
mode:
authorMartin Pieuchot <[email protected]>2017-03-23 11:39:34 +0100
committermonsta <[email protected]>2017-03-26 00:08:03 +0300
commitb205aaf76fde5f061f5e1fdb1a38534841e4883e (patch)
tree415807a7b09694cf805ba9e40f5e550f9cecec85 /src/file-manager
parent60b192c5939bf07f93bf4103ff7ccb55fe816581 (diff)
downloadcaja-b205aaf76fde5f061f5e1fdb1a38534841e4883e.tar.bz2
caja-b205aaf76fde5f061f5e1fdb1a38534841e4883e.tar.xz
Fix broken rename in list view by selectin file name cell.
This is a backport from nautilus 5b09cedf434b53a975074b346d511335fc735cba list-view: explicitly set cursor on file name cell renderer on rename The file name column has two cell renderers, one for the icon and another for the name string. Thus, gtk_tree_view_set_cursor() isn't enough to reliably start editing the file name cell since it will try to edit whatever is the currently focused cell in the column. https://bugzilla.gnome.org/show_bug.cgi?id=656128 Fixes https://github.com/mate-desktop/caja/issues/741
Diffstat (limited to 'src/file-manager')
-rw-r--r--src/file-manager/fm-list-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c
index 4b155f27..6af468fe 100644
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -2908,9 +2908,10 @@ fm_list_view_start_renaming_file (FMDirectoryView *view,
NULL,
list_view->details->file_name_column,
TRUE, 0.0, 0.0);
- gtk_tree_view_set_cursor (list_view->details->tree_view,
+ gtk_tree_view_set_cursor_on_cell (list_view->details->tree_view,
path,
list_view->details->file_name_column,
+ GTK_CELL_RENDERER (list_view->details->file_name_cell),
TRUE);
/* set cursor also triggers editing-started, where we save the editable widget */