[evince/wip/app] previewer: Use g_printerr instead of g_warning



commit 1d23766379c766d750180468018e05cd22a6b994
Author: Christian Persch <chpe gnome org>
Date:   Wed Jun 13 23:53:03 2012 +0200

    previewer: Use g_printerr instead of g_warning
    
    These are really runtime errors, not warnings, so just use g_printerr.

 previewer/ev-previewer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/previewer/ev-previewer.c b/previewer/ev-previewer.c
index 77505f9..ab14fb0 100644
--- a/previewer/ev-previewer.c
+++ b/previewer/ev-previewer.c
@@ -225,7 +225,7 @@ main (gint argc, gchar **argv)
 	g_option_context_add_group (context, gtk_get_option_group (TRUE));
 
 	if (!g_option_context_parse (context, &argc, &argv, &error)) {
-		g_warning ("Error parsing command line arguments: %s", error->message);
+		g_printerr ("Error parsing command line arguments: %s\n", error->message);
 		g_error_free (error);
 		g_option_context_free (context);
                 return 1;
@@ -241,7 +241,7 @@ main (gint argc, gchar **argv)
         }
 
 	if (!g_file_test (argv[1], G_FILE_TEST_IS_REGULAR)) {
-		g_warning ("Filename \"%s\" does not exist or is not a regular file", argv[1]);
+		g_printerr ("Filename \"%s\" does not exist or is not a regular file\n", argv[1]);
                 return 1;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]