Added method to obtain event-uuid from the dialog.

This commit is contained in:
Erick Pérez Castellanos
2012-08-23 14:59:34 -04:00
parent 49afd07fc7
commit 4c3bf3c318
2 changed files with 17 additions and 0 deletions
+15
View File
@@ -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);
}
+2
View File
@@ -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__ */