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/ChangeLog | 8 +++++++- calendar/gui/dialogs/cal-prefs-dialog.c | 6 +----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 3455b168df..66e6d26b81 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +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 + 2004-02-05 Kidd Wang * gui/goto-dialog.glade: add a mnemonic for the 'Go to Today' button @@ -9,7 +16,6 @@ * gui/e-itip-control.c (get_next): added a check for NULL - 2004-02-04 JP Rosevear * importers/icalendar-importer.c (gnome_calendar_import_data_fn): 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