diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-03-27 01:37:23 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-03-27 01:37:23 +0800 |
commit | 80cca17bf0ddf12148625f88da7538181d3ba490 (patch) | |
tree | dc2dc5993243e690e369c7921d11d6c5fe2ea686 /calendar | |
parent | 3f826a8b2a3b0e3c3487004cbd6736d5775246fe (diff) | |
download | gsoc2013-evolution-80cca17bf0ddf12148625f88da7538181d3ba490.tar.gz gsoc2013-evolution-80cca17bf0ddf12148625f88da7538181d3ba490.tar.zst gsoc2013-evolution-80cca17bf0ddf12148625f88da7538181d3ba490.zip |
return correct values in g_return_val_if_fail.
2003-03-26 Rodrigo Moya <rodrigo@ximian.com>
* cal-client/cal-client.c (cal_client_get_load_state): return correct
values in g_return_val_if_fail.
svn path=/trunk/; revision=20516
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/cal-client/cal-client.c | 4 | ||||
-rw-r--r-- | calendar/importers/icalendar-importer.c | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 089d52ef57..8590c1bd0a 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2003-03-26 Rodrigo Moya <rodrigo@ximian.com> + + * cal-client/cal-client.c (cal_client_get_load_state): return correct + values in g_return_val_if_fail. + 2003-03-26 Jack Jia <jack.jia@sun.com> * calendar/gui/dialogs/alarm-options.c diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c index b5e5daf2cc..9921899636 100644 --- a/calendar/cal-client/cal-client.c +++ b/calendar/cal-client/cal-client.c @@ -1101,8 +1101,8 @@ cal_client_get_load_state (CalClient *client) { CalClientPrivate *priv; - g_return_val_if_fail (client != NULL, FALSE); - g_return_val_if_fail (IS_CAL_CLIENT (client), FALSE); + g_return_val_if_fail (client != NULL, CAL_CLIENT_LOAD_NOT_LOADED); + g_return_val_if_fail (IS_CAL_CLIENT (client), CAL_CLIENT_LOAD_NOT_LOADED); priv = client->priv; return priv->load_state; diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index 169b090ed6..7707acad1e 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -207,7 +207,7 @@ process_item_fn (EvolutionImporter *importer, TRUE, ev); return; } else if (state != CAL_CLIENT_LOAD_LOADED - || tasks_state != CAL_CLIENT_LOAD_LOADED) { + || tasks_state != CAL_CLIENT_LOAD_LOADED) { GNOME_Evolution_ImporterListener_notifyResult ( listener, GNOME_Evolution_ImporterListener_UNSUPPORTED_OPERATION, |