SF.net SVN: geany: [1296] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Fri Feb 16 17:09:53 UTC 2007


Revision: 1296
          http://svn.sourceforge.net/geany/?rev=1296&view=rev
Author:   ntrel
Date:     2007-02-16 09:09:53 -0800 (Fri, 16 Feb 2007)

Log Message:
-----------
Show grep command and directory when using Find in Files.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/search.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-02-16 16:59:24 UTC (rev 1295)
+++ trunk/ChangeLog	2007-02-16 17:09:53 UTC (rev 1296)
@@ -6,6 +6,8 @@
    Don't autocomplete for/if constructs when editing an existing line.
  * src/src/document.c:
    Set single undo action when using document_strip_trailing_spaces().
+ * src/search.c:
+   Show grep command and directory when using Find in Files.
 
 
 2007-02-15  Enrico Tröger  <enrico.troeger at uvena.de>

Modified: trunk/src/search.c
===================================================================
--- trunk/src/search.c	2007-02-16 16:59:24 UTC (rev 1295)
+++ trunk/src/search.c	2007-02-16 17:09:53 UTC (rev 1296)
@@ -1116,11 +1116,19 @@
 	}
 	else
 	{
+		gchar *str, *utf8_str;
+
 		g_free(msgwindow.find_in_files_dir);
 		msgwindow.find_in_files_dir = g_strdup(dir);
 		utils_set_up_io_channel(stdout_fd, G_IO_IN|G_IO_PRI|G_IO_ERR|G_IO_HUP|G_IO_NVAL,
 			search_read_io, NULL);
 		g_child_watch_add(child_pid, search_close_pid, NULL);
+
+		str = g_strdup_printf(_("%s %s %s %s (in directory: %s)"),
+			argv[0], argv[1], argv[2], argv[3], dir);
+		utf8_str = utils_get_utf8_from_locale(str);
+		msgwin_msg_add(-1, -1, utf8_str);
+		utils_free_pointers(str, utf8_str, NULL);
 		ret = TRUE;
 	}
 	g_strfreev(argv);


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