Revision: 1151 http://svn.sourceforge.net/geany/?rev=1151&view=rev Author: eht16 Date: 2006-12-31 07:47:37 -0800 (Sun, 31 Dec 2006)
Log Message: ----------- When opening a file, set the current selected entry in the open files list to the file's filename.
Modified Paths: -------------- trunk/ChangeLog trunk/src/treeviews.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-12-30 16:18:15 UTC (rev 1150) +++ trunk/ChangeLog 2006-12-31 15:47:37 UTC (rev 1151) @@ -1,3 +1,9 @@ +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:
Modified: trunk/src/treeviews.c =================================================================== --- trunk/src/treeviews.c 2006-12-30 16:18:15 UTC (rev 1150) +++ trunk/src/treeviews.c 2006-12-31 15:47:37 UTC (rev 1151) @@ -332,6 +332,10 @@
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); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.