From 4c3bf3c318356e7cb5560151fa56b5ebe59b187f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Thu, 23 Aug 2012 14:59:34 -0400 Subject: [PATCH] Added method to obtain event-uuid from the dialog. --- src/gcal-edit-dialog.c | 15 +++++++++++++++ src/gcal-edit-dialog.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c index 35457cf4..036f3742 100644 --- a/src/gcal-edit-dialog.c +++ b/src/gcal-edit-dialog.c @@ -650,3 +650,18 @@ gcal_edit_dialog_set_manager (GcalEditDialog *dialog, gtk_widget_show_all (GTK_WIDGET (menu)); } + +gchar* +gcal_edit_dialog_get_event_uuid (GcalEditDialog *dialog) +{ + GcalEditDialogPrivate *priv; + + priv = dialog->priv; + + if (priv->source_uid == NULL || + priv->event_uid == NULL) + { + return NULL; + } + return g_strdup_printf ("%s:%s", priv->source_uid, priv->event_uid); +} diff --git a/src/gcal-edit-dialog.h b/src/gcal-edit-dialog.h index 63dd28dd..6092fd56 100644 --- a/src/gcal-edit-dialog.h +++ b/src/gcal-edit-dialog.h @@ -64,6 +64,8 @@ void gcal_edit_dialog_set_event (GcalEditDialog *dialog, void gcal_edit_dialog_set_manager (GcalEditDialog *dialog, GcalManager *manager); +gchar* gcal_edit_dialog_get_event_uuid (GcalEditDialog *dialog); + G_END_DECLS #endif /* __GCAL_EDIT_DIALOG_H__ */