[gnome-calendar] utils: add ESource* argument to ask-recurrence-modification-type



commit a9430f54d0b3ffcc9089db04e8cf84d7382d2583
Author: Yash Singh <yashdev10p gmail com>
Date:   Sat Jun 10 17:11:15 2017 +0530

    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 384860d..170f8b0 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 37b1d82..96e9156 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__


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]