From 25d8c955ef0dd86b7237bc66472bfa87aa69b41e Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 5 Feb 2004 18:41:10 +0000 Subject: make failure not so draconian - make the color black 2004-02-05 JP Rosevear * gui/dialogs/cal-prefs-dialog.c (set_color_picker): make failure not so draconian - make the color black Fixes #53547 svn path=/trunk/; revision=24635 --- calendar/gui/dialogs/cal-prefs-dialog.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c index 635c665cc1..a821bdc70f 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.c +++ b/calendar/gui/dialogs/cal-prefs-dialog.c @@ -528,12 +528,8 @@ set_color_picker (GtkWidget *picker, const char *spec) { GdkColor color; - g_assert (spec != NULL); - - if (!gdk_color_parse (spec, &color)) { + if (!spec || !gdk_color_parse (spec, &color)) color.red = color.green = color.blue = 0; - return; - } gnome_color_picker_set_i16 (GNOME_COLOR_PICKER (picker), color.red, -- cgit v1.2.3