utils: Pass GcalCalendar to ask_recurrence_modification_type()

The method ask_recurrence_modification_type() currently
receives an ESource, and tried to fetch the ECalClient
from the ESource by using g_object_get_data().

However, since we moved to GcalCalendar, we do not set
this data field in ESource.

Receive a GcalCalendar instead, and use the appropriate
function gcal_calendar_get_client() instead.
This commit is contained in:
Georges Basile Stavracas Neto
2019-09-14 21:38:53 -03:00
parent 18ae67cb59
commit 5e4bbe446f
6 changed files with 11 additions and 19 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ gboolean is_source_enabled (ESource
gboolean ask_recurrence_modification_type (GtkWidget *parent,
GcalRecurrenceModType *modtype,
ESource *source);
GcalCalendar *calendar);
gboolean is_workday (guint day);