[gnome-calendar] event-widget: set :uuid property from data
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] event-widget: set :uuid property from data
- Date: Thu, 4 Dec 2014 22:34:13 +0000 (UTC)
commit 714e2c93f3df633793c56e4c44e381cec82ff1cf
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Sun Oct 5 19:57:05 2014 -0400
event-widget: set :uuid property from data
src/gcal-event-widget.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-event-widget.c b/src/gcal-event-widget.c
index 1ad09c3..04f29c0 100644
--- a/src/gcal-event-widget.c
+++ b/src/gcal-event-widget.c
@@ -653,14 +653,21 @@ gcal_event_widget_new_from_data (GcalEventData *data)
GcalEventWidget *event;
GcalEventWidgetPrivate *priv;
+ gchar *uuid;
ECalComponentText e_summary;
ESourceSelectable *extension;
GdkRGBA *color;
ECalComponentDateTime dt;
icaltimetype *date;
gboolean start_is_date, end_is_date;
-
- widget = g_object_new (GCAL_TYPE_EVENT_WIDGET, NULL);
+ const gchar *uid = NULL;
+
+ e_cal_component_get_uid (data->event_component, &uid);
+ uuid = g_strdup_printf ("%s:%s",
+ e_source_get_uid (data->source),
+ uid);
+ widget = g_object_new (GCAL_TYPE_EVENT_WIDGET, "uuid", uuid, NULL);
+ g_free (uuid);
event = GCAL_EVENT_WIDGET (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]