[Galago-commits] r2758 - in trunk/libnotify: . tools

galago-commits at freedesktop.org galago-commits at freedesktop.org
Fri Apr 21 15:35:54 PDT 2006


Author: chipx86
Date: 2006-04-21 15:35:52 -0700 (Fri, 21 Apr 2006)
New Revision: 2758

Modified:
   trunk/libnotify/ChangeLog
   trunk/libnotify/tools/notify-send.c
Log:
Use fprintf instead of g_warning.


Modified: trunk/libnotify/ChangeLog
===================================================================
--- trunk/libnotify/ChangeLog	2006-04-21 22:23:17 UTC (rev 2757)
+++ trunk/libnotify/ChangeLog	2006-04-21 22:35:52 UTC (rev 2758)
@@ -1,3 +1,8 @@
+Fri Apr 21 15:35:40 PDT 2006  Christian Hammond <chipx86 at chipx86.com>
+
+	* tools/notify-send.c:
+	  - Use fprintf instead of g_warning.
+
 Fri Apr 21 14:38:04 PDT 2006  Christian Hammond <chipx86 at chipx86.com>
 
 	* AUTHORS:

Modified: trunk/libnotify/tools/notify-send.c
===================================================================
--- trunk/libnotify/tools/notify-send.c	2006-04-21 22:23:17 UTC (rev 2757)
+++ trunk/libnotify/tools/notify-send.c	2006-04-21 22:35:52 UTC (rev 2758)
@@ -179,7 +179,7 @@
 
 	if (!retval)
 	{
-		g_warning("%s", error->message);
+		fprintf(stderr, "%s\n", error->message);
 		g_error_free(error);
 		exit(1);
 	}
@@ -195,7 +195,7 @@
 
 	if (summary == NULL)
 	{
-		g_warning("%s", N_("No summary specified."));
+		fprintf(stderr, "%s\n", N_("No summary specified."));
 		exit(1);
 	}
 
@@ -205,7 +205,7 @@
 
 		if (n_text[2] != NULL)
 		{
-			g_warning("%s", N_("Invalid number of options."));
+			fprintf(stderr, "%s\n", N_("Invalid number of options."));
 			exit(1);
 		}
 	}
@@ -244,8 +244,9 @@
 
 			if (l != 3)
 			{
-				g_warning("%s", N_("Invalid hint syntax specified. "
-								   "Use TYPE:NAME:VALUE."));
+				fprintf(stderr, "%s\n",
+						N_("Invalid hint syntax specified. "
+						   "Use TYPE:NAME:VALUE."));
 				hint_error = TRUE;
 			}
 			else
@@ -255,7 +256,7 @@
 
 				if (!retval)
 				{
-					g_warning("%s", error->message);
+					fprintf(stderr, "%s\n", error->message);
 					g_error_free(error);
 					hint_error = TRUE;
 				}



More information about the galago-commits mailing list