Revision: 5052 http://geany.svn.sourceforge.net/geany/?rev=5052&view=rev Author: ntrel Date: 2010-06-18 17:03:35 +0000 (Fri, 18 Jun 2010)
Log Message: ----------- Allow Find in Files when no items are selected.
Modified Paths: -------------- trunk/ChangeLog trunk/plugins/filebrowser.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-06-18 15:04:07 UTC (rev 5051) +++ trunk/ChangeLog 2010-06-18 17:03:35 UTC (rev 5052) @@ -9,6 +9,8 @@ Fix not loading plugins built against a newer API when Geany doesn't provide the required version given in PLUGIN_VERSION_CHECK(). Improve documentation for PLUGIN_VERSION_CHECK(). + * plugins/filebrowser.c: + Allow Find in Files when no items are selected.
2010-06-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/plugins/filebrowser.c =================================================================== --- trunk/plugins/filebrowser.c 2010-06-18 15:04:07 UTC (rev 5051) +++ trunk/plugins/filebrowser.c 2010-06-18 17:03:35 UTC (rev 5052) @@ -544,7 +544,9 @@ gboolean is_dir = FALSE;
treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(file_view)); - if (! check_single_selection(treesel)) + /* allow 0 or 1 selections */ + if (gtk_tree_selection_count_selected_rows(treesel) > 0 && + ! check_single_selection(treesel)) return;
list = gtk_tree_selection_get_selected_rows(treesel, &model);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.