Revision: 1365 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1365&view=re... Author: dimitrov-adrian Date: 2010-05-16 11:07:41 +0000 (Sun, 16 May 2010)
Log Message: ----------- Treebrowser: Fixed Bookmarks state when refreshing the tree
Modified Paths: -------------- trunk/geany-plugins/treebrowser/ChangeLog trunk/geany-plugins/treebrowser/src/treebrowser.c
Modified: trunk/geany-plugins/treebrowser/ChangeLog =================================================================== --- trunk/geany-plugins/treebrowser/ChangeLog 2010-05-16 11:00:23 UTC (rev 1364) +++ trunk/geany-plugins/treebrowser/ChangeLog 2010-05-16 11:07:41 UTC (rev 1365) @@ -30,13 +30,18 @@ * Migrating to stash * Adding keybindings for renaming/deleting/refreshing (DONE) Add option to change bars position // requested by <dmaphy> - * Add option to autorename the newest created objects by the Treebrowser + * Add option to autorename point the newest created objects by the Treebrowser
+-------------------------------+ | Development release ChangeLog | +-------------------------------+
+16-05-2010 Adrian Dimitrov dimitrov.adrian@gmail.com + + * src/treebrowser.c + Fixed Bookmarks state when refreshing the tree + 25-04-2010 Adrian Dimitrov dimitrov.adrian@gmail.com
* src/treebrowser.c
Modified: trunk/geany-plugins/treebrowser/src/treebrowser.c =================================================================== --- trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-05-16 11:00:23 UTC (rev 1364) +++ trunk/geany-plugins/treebrowser/src/treebrowser.c 2010-05-16 11:07:41 UTC (rev 1365) @@ -292,6 +292,9 @@ if (parent && gtk_tree_view_row_expanded(GTK_TREE_VIEW(treeview), gtk_tree_model_get_path(GTK_TREE_MODEL(treestore), parent))) expanded = TRUE;
+ if (CONFIG_SHOW_BOOKMARKS && gtk_tree_store_iter_is_valid(treestore, &bookmarks_iter)) + bookmarks_expanded = gtk_tree_view_row_expanded(GTK_TREE_VIEW(treeview), gtk_tree_model_get_path(GTK_TREE_MODEL(treestore), &bookmarks_iter)); + gtk_tree_store_iter_clear_nodes(parent, FALSE);
list = utils_get_file_list(directory, NULL, NULL); @@ -350,8 +353,15 @@ g_free(uri); } } - if (parent && expanded) - gtk_tree_view_expand_row(GTK_TREE_VIEW(treeview), gtk_tree_model_get_path(GTK_TREE_MODEL(treestore), parent), FALSE); + + if (parent) + { + if (expanded) + gtk_tree_view_expand_row(GTK_TREE_VIEW(treeview), gtk_tree_model_get_path(GTK_TREE_MODEL(treestore), parent), FALSE); + } + else + if (CONFIG_SHOW_BOOKMARKS) + treebrowser_load_bookmarks(); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.