summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <[email protected]>2017-03-23 11:39:34 +0100
committerMartin Pieuchot <[email protected]>2017-03-23 16:33:42 +0100
commit8eb3d9d5452eb42634f27de59178e64da1e8f86f (patch)
tree695af100e07939f78c43680c7e7d17df7775e382
parent45f862c6178358e73470296e5793b10c486926c1 (diff)
downloadcaja-8eb3d9d5452eb42634f27de59178e64da1e8f86f.tar.bz2
caja-8eb3d9d5452eb42634f27de59178e64da1e8f86f.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
-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 7ff712eb..4021bf2e 100644
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -2891,9 +2891,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 */