SF.net SVN: geany:[5133] branches/Geany-0_19_1

ntrel at users.sourceforge.net ntrel at xxxxx
Wed Aug 11 14:13:24 UTC 2010


Revision: 5133
          http://geany.svn.sourceforge.net/geany/?rev=5133&view=rev
Author:   ntrel
Date:     2010-08-11 14:13:24 +0000 (Wed, 11 Aug 2010)

Log Message:
-----------
r5052

Modified Paths:
--------------
    branches/Geany-0_19_1/ChangeLog
    branches/Geany-0_19_1/plugins/filebrowser.c

Modified: branches/Geany-0_19_1/ChangeLog
===================================================================
--- branches/Geany-0_19_1/ChangeLog	2010-08-11 12:50:38 UTC (rev 5132)
+++ branches/Geany-0_19_1/ChangeLog	2010-08-11 14:13:24 UTC (rev 5133)
@@ -4,6 +4,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-16  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: branches/Geany-0_19_1/plugins/filebrowser.c
===================================================================
--- branches/Geany-0_19_1/plugins/filebrowser.c	2010-08-11 12:50:38 UTC (rev 5132)
+++ branches/Geany-0_19_1/plugins/filebrowser.c	2010-08-11 14:13:24 UTC (rev 5133)
@@ -545,7 +545,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.



More information about the Commits mailing list