Use fprintf instead of g_warning.

This commit is contained in:
Christian Hammond 2006-04-21 22:35:52 +00:00
parent 5d9fd84226
commit 870f6923ab
2 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,8 @@
Fri Apr 21 15:35:40 PDT 2006 Christian Hammond <chipx86@chipx86.com>
* tools/notify-send.c:
- Use fprintf instead of g_warning.
Fri Apr 21 14:38:04 PDT 2006 Christian Hammond <chipx86@chipx86.com> Fri Apr 21 14:38:04 PDT 2006 Christian Hammond <chipx86@chipx86.com>
* AUTHORS: * AUTHORS:

View File

@ -179,7 +179,7 @@ main(int argc, char *argv[])
if (!retval) if (!retval)
{ {
g_warning("%s", error->message); fprintf(stderr, "%s\n", error->message);
g_error_free(error); g_error_free(error);
exit(1); exit(1);
} }
@ -195,7 +195,7 @@ main(int argc, char *argv[])
if (summary == NULL) if (summary == NULL)
{ {
g_warning("%s", N_("No summary specified.")); fprintf(stderr, "%s\n", N_("No summary specified."));
exit(1); exit(1);
} }
@ -205,7 +205,7 @@ main(int argc, char *argv[])
if (n_text[2] != NULL) if (n_text[2] != NULL)
{ {
g_warning("%s", N_("Invalid number of options.")); fprintf(stderr, "%s\n", N_("Invalid number of options."));
exit(1); exit(1);
} }
} }
@ -244,8 +244,9 @@ main(int argc, char *argv[])
if (l != 3) if (l != 3)
{ {
g_warning("%s", N_("Invalid hint syntax specified. " fprintf(stderr, "%s\n",
"Use TYPE:NAME:VALUE.")); N_("Invalid hint syntax specified. "
"Use TYPE:NAME:VALUE."));
hint_error = TRUE; hint_error = TRUE;
} }
else else
@ -255,7 +256,7 @@ main(int argc, char *argv[])
if (!retval) if (!retval)
{ {
g_warning("%s", error->message); fprintf(stderr, "%s\n", error->message);
g_error_free(error); g_error_free(error);
hint_error = TRUE; hint_error = TRUE;
} }