Commit f353689f authored by Robert Roth's avatar Robert Roth

File browser: focus the text cell before editing

This patch sets the focus cell to the text cell, as it was not
possible to start a rename before clicking an item in the tree
view because of the focus cell being the icon cell, which can
not be edited.
After setting the focus cell to the text cell, new file and folder
creation starts a rename even before the first tree selection.
parent cd2d3fac
......@@ -1180,6 +1180,10 @@ gedit_file_browser_view_start_rename (GeditFileBrowserView *tree_view,
tree_view->priv->orig_markup = markup;
tree_view->priv->editable = rowref;
/* grab focus on the text cell which is editable */
gtk_tree_view_column_focus_cell (tree_view->priv->column,
gtk_tree_view_set_cursor (GTK_TREE_VIEW (tree_view),
gtk_tree_row_reference_get_path (tree_view->priv->editable),
tree_view->priv->column, TRUE);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment