Fix for C89 compatibility.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1154 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
0e75efdd3c
commit
fe39c70821
@ -329,12 +329,13 @@ void treeviews_prepare_openfiles()
|
||||
void treeviews_openfiles_add(gint idx)
|
||||
{
|
||||
GtkTreeIter *iter = &doc_list[idx].iter;
|
||||
GtkTreeSelection *sel;
|
||||
|
||||
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));
|
||||
sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tv.tree_openfiles));
|
||||
gtk_tree_selection_select_iter(sel, iter);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user