Kaydet (Commit) 0760d24a authored tarafından Enrico Tröger's avatar Enrico Tröger

When opening a file, set the current selected entry in the open files list to the file's filename.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1151 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst b03bca85
2006-12-31 Enrico Tröger <enrico.troeger@uvena.de>
* src/treeviews.c: When opening a file, set the current selected
entry in the open files list to the file's filename.
2006-12-30 Nick Treleaven <nick.treleaven@btinternet.com>
* src/ui_utils.c:
......
......@@ -332,6 +332,10 @@ void treeviews_openfiles_add(gint idx)
gtk_list_store_append(tv.store_openfiles, iter);
treeviews_openfiles_update(idx);
// select opened file
GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tv.tree_openfiles));
gtk_tree_selection_select_iter(sel, iter);
}
......
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