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:
committed by
Georges Basile Stavracas Neto
parent
3f9731bf89
commit
a9430f54d0
+2
-2
@@ -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
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user