aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-04-13 03:55:28 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-04-13 06:35:12 +0800
commit08d5bdcf8b8bef913c9ad175927d528ff432332f (patch)
tree4162aea0f9d0d2837011ddb941263f2556f12947 /calendar/gui/dialogs
parent1df4952769b3211b90aecb3a359d8ae484fd1363 (diff)
downloadgsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar
gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar.gz
gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar.bz2
gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar.lz
gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar.xz
gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar.zst
gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.zip
Add e_cal_model_ref_default_client().
Replaces e_cal_model_get_default_client(), which was not thread-safe.
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/goto-dialog.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/goto-dialog.c b/calendar/gui/dialogs/goto-dialog.c
index 64c40ff285..7919666d7c 100644
--- a/calendar/gui/dialogs/goto-dialog.c
+++ b/calendar/gui/dialogs/goto-dialog.c
@@ -96,9 +96,12 @@ ecal_date_range_changed (ECalendarItem *calitem,
ECalClient *client;
model = gnome_calendar_get_model (dlg->gcal);
- client = e_cal_model_get_default_client (model);
- if (client)
+ client = e_cal_model_ref_default_client (model);
+
+ if (client != NULL) {
tag_calendar_by_client (dlg->ecal, client, dlg->cancellable);
+ g_object_unref (client);
+ }
}
/* Event handler for day groups in the month item. A button press makes