Revision: 225 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=225&view=rev Author: yurand Date: 2008-10-21 09:10:58 +0000 (Tue, 21 Oct 2008)
Log Message: ----------- geanyVC: fprintf(stderr, are changed to g_warning
Modified Paths: -------------- trunk/geanyvc/geanyvc.c
Modified: trunk/geanyvc/geanyvc.c =================================================================== --- trunk/geanyvc/geanyvc.c 2008-10-20 20:06:55 UTC (rev 224) +++ trunk/geanyvc/geanyvc.c 2008-10-21 09:10:58 UTC (rev 225) @@ -443,7 +443,7 @@ } if (error) { - fprintf(stderr, "geanyvc: s_spawn_sync error: %s\n", error->message); + g_warning("geanyvc: s_spawn_sync error: %s", error->message); p_ui->set_statusbar(FALSE, _("geanyvc: s_spawn_sync error: %s"), error->message); g_error_free(error); @@ -525,7 +525,7 @@ } else { - fprintf(stderr, "geanyvc: unknown startdir type: %d\n", vc->commands[cmd].startdir); + g_warning("geanyvc: unknown startdir type: %d", vc->commands[cmd].startdir); }
ret = execute_custom_command(dir, vc->commands[cmd].command, vc->commands[cmd].env, std_out, @@ -579,10 +579,9 @@
if (g_rename(localename, new) != 0) { - fprintf(stderr, - _ - ("geanyvc: vcdiff_file_activated: Unable to rename '%s' to '%s'\n"), - localename, new); + g_warning(_ + ("geanyvc: vcdiff_file_activated: Unable to rename '%s' to '%s'"), + localename, new); goto end; }
@@ -591,10 +590,9 @@
if (g_rename(localename, old) != 0) { - fprintf(stderr, - _ - ("geanyvc: vcdiff_file_activated: Unable to rename '%s' to '%s'\n"), - localename, old); + g_warning(_ + ("geanyvc: vcdiff_file_activated: Unable to rename '%s' to '%s'"), + localename, old); g_rename(new, localename); goto end; } @@ -1031,7 +1029,7 @@ } else { - fprintf(stderr, "error: geanyvc: get_commit_diff_foreach: empty diff output\n"); + g_warning("error: geanyvc: get_commit_diff_foreach: empty diff output"); } g_free(filename); return FALSE;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org