From a9430f54d0b3ffcc9089db04e8cf84d7382d2583 Mon Sep 17 00:00:00 2001 From: Yash Singh Date: Sat, 10 Jun 2017 17:11:15 +0530 Subject: [PATCH] utils: add ESource* argument to ask-recurrence-modification-type Earlier the argument was ESource. Changed the argument to ESource* for the function to correctly fetch "client" data from the source. https://bugzilla.gnome.org/show_bug.cgi?id=782755 --- src/gcal-utils.c | 4 ++-- src/gcal-utils.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gcal-utils.c b/src/gcal-utils.c index 384860d5..170f8b0e 100644 --- a/src/gcal-utils.c +++ b/src/gcal-utils.c @@ -1169,7 +1169,7 @@ is_source_enabled (ESource *source) gboolean ask_recurrence_modification_type (GtkWidget *parent, ECalObjModType *modtype, - ESource source) + ESource *source) { GtkWidget *dialog; GtkDialogFlags flags; @@ -1193,7 +1193,7 @@ ask_recurrence_modification_type (GtkWidget *parent, GTK_RESPONSE_ACCEPT, NULL); - client = g_object_get_data (G_OBJECT (&source), "client"); + client = g_object_get_data (G_OBJECT (source), "client"); if (!e_client_check_capability (E_CLIENT (client), CAL_STATIC_CAPABILITY_NO_THISANDFUTURE)) gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Subsequent events"), GTK_RESPONSE_OK); diff --git a/src/gcal-utils.h b/src/gcal-utils.h index 37b1d828..96e91560 100644 --- a/src/gcal-utils.h +++ b/src/gcal-utils.h @@ -141,6 +141,6 @@ gboolean is_source_enabled (ESource gboolean ask_recurrence_modification_type (GtkWidget *parent, ECalObjModType *modtype, - ESource source); + ESource *source); #endif // __GCAL_UTILS_H__