diff options
author | JP Rosevear <jpr@ximian.com> | 2004-02-06 02:41:10 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-02-06 02:41:10 +0800 |
commit | 25d8c955ef0dd86b7237bc66472bfa87aa69b41e (patch) | |
tree | d1c722272f50509459f301fdc96eac99c7baefb9 /calendar/gui/dialogs | |
parent | bfc4088a520e499a2b202b7d761fd609ce2b5b7e (diff) | |
download | gsoc2013-evolution-25d8c955ef0dd86b7237bc66472bfa87aa69b41e.tar.gz gsoc2013-evolution-25d8c955ef0dd86b7237bc66472bfa87aa69b41e.tar.zst gsoc2013-evolution-25d8c955ef0dd86b7237bc66472bfa87aa69b41e.zip |
make failure not so draconian - make the color black
2004-02-05 JP Rosevear <jpr@ximian.com>
* 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
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/cal-prefs-dialog.c | 6 |
1 files changed, 1 insertions, 5 deletions
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, |