SF.net SVN: geany: [1492] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Apr 30 12:43:24 UTC 2007
Revision: 1492
http://svn.sourceforge.net/geany/?rev=1492&view=rev
Author: ntrel
Date: 2007-04-30 05:43:22 -0700 (Mon, 30 Apr 2007)
Log Message:
-----------
Show number of matches when using Mark command.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/search.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-04-30 12:32:13 UTC (rev 1491)
+++ trunk/ChangeLog 2007-04-30 12:43:22 UTC (rev 1492)
@@ -12,6 +12,8 @@
* src/search.c:
Switch to status window when using Replace In Session to show which
documents had replacements made.
+ * src/search.c:
+ Show number of matches when using Mark command.
2007-04-29 Nick Treleaven <nick.treleaven at btinternet.com>
Modified: trunk/src/search.c
===================================================================
--- trunk/src/search.c 2007-04-30 12:32:13 UTC (rev 1491)
+++ trunk/src/search.c 2007-04-30 12:43:22 UTC (rev 1492)
@@ -856,11 +856,17 @@
break;
case GEANY_RESPONSE_MARK:
- {
if (DOC_IDX_VALID(idx))
- search_mark(idx, search_data.text, search_data.flags);
+ {
+ gint count = search_mark(idx, search_data.text, search_data.flags);
+
+ if (count == 0)
+ ui_set_statusbar(_("No matches found for '%s'."), search_data.text);
+ else
+ ui_set_statusbar(_("Found %d matches for '%s'."), count,
+ search_data.text);
+ }
break;
- }
}
if (check_close)
gtk_widget_hide(widgets.find_dialog);
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