[gnome-calendar] views: use GcalEventWidget API for locked sate
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] views: use GcalEventWidget API for locked sate
- Date: Thu, 4 Dec 2014 22:41:53 +0000 (UTC)
commit e68ca325b44d56cc981a3acb6ca87172131dc4e1
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Tue Nov 4 15:46:15 2014 -0500
views: use GcalEventWidget API for locked sate
src/gcal-search-view.c | 3 +++
src/gcal-subscriber.c | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index 7178d4c..d764f9c 100644
--- a/src/gcal-search-view.c
+++ b/src/gcal-search-view.c
@@ -256,6 +256,9 @@ gcal_search_view_component_added (ECalDataModelSubscriber *subscriber,
data->event_component = e_cal_component_clone (comp);
event = gcal_event_widget_new_from_data (data);
+ gcal_new_event_widget_set_read_only (
+ GCAL_EVENT_WIDGET (event),
+ e_client_is_readonly (E_CLIENT (client)));
g_free (data);
gtk_widget_set_margin_start (event, 96);
diff --git a/src/gcal-subscriber.c b/src/gcal-subscriber.c
index e4caa0a..875e35e 100644
--- a/src/gcal-subscriber.c
+++ b/src/gcal-subscriber.c
@@ -85,6 +85,10 @@ gcal_subscriber_component_added (ECalDataModelSubscriber *subscriber,
data->event_component = e_cal_component_clone (comp);
event = gcal_event_widget_new_from_data (data);
+ gcal_new_event_widget_set_read_only (
+ GCAL_EVENT_WIDGET (event),
+ e_client_is_readonly (E_CLIENT (client)));
+
g_free (data);
gtk_widget_show (event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]