[gnome-screensaver] Handle commandline errors in popsquares
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-screensaver] Handle commandline errors in popsquares
- Date: Fri, 11 Dec 2009 18:38:07 +0000 (UTC)
commit 34c71c0830e032801d55b6b9091099c51e53aaa4
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 11 13:35:37 2009 -0500
Handle commandline errors in popsquares
There is no point in passing a GError if we don't act on it.
This fixes RH bug 546656.
savers/popsquares.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/savers/popsquares.c b/savers/popsquares.c
index c743cf2..94bdf7d 100644
--- a/savers/popsquares.c
+++ b/savers/popsquares.c
@@ -45,7 +45,12 @@ main (int argc, char **argv)
error = NULL;
- gtk_init_with_args (&argc, &argv, NULL, NULL, NULL, &error);
+ if (!gtk_init_with_args (&argc, &argv, NULL, NULL, NULL, &error)) {
+ g_printerr (_("%s. See --help for usage information.\n"),
+ error->message);
+ g_error_free (error);
+ exit (1);
+ }
window = gs_theme_window_new ();
g_signal_connect (G_OBJECT (window), "delete-event",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]