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
This commit is contained in:
Yash Singh
2017-06-10 08:49:48 -03:00
committed by Georges Basile Stavracas Neto
parent 3f9731bf89
commit a9430f54d0
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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);
+1 -1
View File
@@ -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__