Added method to obtain event-uuid from the dialog.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user