[gnome-calendar] Added method to obtain event-uuid from the dialog.



commit 4c3bf3c318356e7cb5560151fa56b5ebe59b187f
Author: Erick PÃrez Castellanos <erick red gmail com>
Date:   Thu Aug 23 14:59:34 2012 -0400

    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(+), 0 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index 35457cf..036f374 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 63dd28d..6092fd5 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__ */



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