aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-01 21:10:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-01 21:10:16 +0800
commit6477dd65708b286001b487ca89d4d5066a25bbfd (patch)
tree267f6fff036d60d4d3d5376ccac66bfc47e12a3d /calendar/gui/e-cal-model.h
parent815c8776bbeee8e937db73c2006846ab9606ffb0 (diff)
downloadgsoc2013-evolution-6477dd65708b286001b487ca89d4d5066a25bbfd.tar
gsoc2013-evolution-6477dd65708b286001b487ca89d4d5066a25bbfd.tar.gz
gsoc2013-evolution-6477dd65708b286001b487ca89d4d5066a25bbfd.tar.bz2
gsoc2013-evolution-6477dd65708b286001b487ca89d4d5066a25bbfd.tar.lz
gsoc2013-evolution-6477dd65708b286001b487ca89d4d5066a25bbfd.tar.xz
gsoc2013-evolution-6477dd65708b286001b487ca89d4d5066a25bbfd.tar.zst
gsoc2013-evolution-6477dd65708b286001b487ca89d4d5066a25bbfd.zip
Add a boolean return to e_cal_model_add_client().
The function now returns TRUE if the ECalClient was actually added to the model, or FALSE if the model already had the ECalClient. Use this to avoid an unnecessary gnome_calendar_update_query() call in cal_shell_view_selector_client_added_cb().
Diffstat (limited to 'calendar/gui/e-cal-model.h')
-rw-r--r--calendar/gui/e-cal-model.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar/gui/e-cal-model.h b/calendar/gui/e-cal-model.h
index 4e189ab186..407195117a 100644
--- a/calendar/gui/e-cal-model.h
+++ b/calendar/gui/e-cal-model.h
@@ -254,7 +254,7 @@ ECalClient * e_cal_model_ref_default_client (ECalModel *model);
void e_cal_model_set_default_client (ECalModel *model,
ECalClient *client);
GList * e_cal_model_list_clients (ECalModel *model);
-void e_cal_model_add_client (ECalModel *model,
+gboolean e_cal_model_add_client (ECalModel *model,
ECalClient *cal_client);
void e_cal_model_remove_client (ECalModel *model,
ECalClient *cal_client);