Branch: refs/heads/master Author: Nick Treleaven nick.treleaven@btinternet.com Committer: Nick Treleaven nick.treleaven@btinternet.com Date: Tue, 27 Nov 2012 14:16:30 UTC Commit: a1022060d29e35d4ace6fced2acc277a56f20f65 https://github.com/geany/geany/commit/a1022060d29e35d4ace6fced2acc277a56f20f...
Log Message: ----------- Show Find in Files status summary on Windows
Modified Paths: -------------- src/search.c
Modified: src/search.c 8 files changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -1781,9 +1781,8 @@ static gboolean search_read_io_stderr(GIOChannel *source, GIOCondition condition
static void search_close_pid(GPid child_pid, gint status, gpointer user_data) { - /* TODO: port this also to Windows API */ -#ifdef G_OS_UNIX const gchar *msg = _("Search failed."); +#ifdef G_OS_UNIX gint exit_status = 1;
if (WIFEXITED(status)) @@ -1795,6 +1794,9 @@ static void search_close_pid(GPid child_pid, gint status, gpointer user_data) exit_status = -1; g_warning("Find in Files: The command failed unexpectedly (signal received)."); } +#else + gint exit_status = status; +#endif
switch (exit_status) { @@ -1817,8 +1819,6 @@ static void search_close_pid(GPid child_pid, gint status, gpointer user_data) ui_set_statusbar(FALSE, "%s", msg); break; } -#endif - utils_beep(); g_spawn_close_pid(child_pid); ui_progress_bar_stop();
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).