[gnome-calendar] view: gained a :manager property



commit 8ba7f431fd32cb9065793214d8109d189c3bdec2
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Thu Oct 16 01:32:15 2014 -0400

    view: gained a :manager property
    
    Forcing every GcalView implementing class to keep a reference (actually
    it is a simple pointer) to GcalManager instance coming from the application.

 src/gcal-view.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-view.c b/src/gcal-view.c
index 7cc5840..4331a87 100644
--- a/src/gcal-view.c
+++ b/src/gcal-view.c
@@ -39,6 +39,14 @@ gcal_view_base_init (gpointer g_iface)
                               ICAL_TIME_TYPE,
                               G_PARAM_READWRITE));
 
+      g_object_interface_install_property (
+          g_iface,
+          g_param_spec_pointer ("manager",
+                                "The manager object",
+                                "A weak reference to the app manager object",
+                                G_PARAM_CONSTRUCT_ONLY |
+                                G_PARAM_READWRITE));
+
       g_signal_new ("create-event",
                     GCAL_TYPE_VIEW,
                     G_SIGNAL_RUN_LAST,


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