[gnome-calendar/new-year-view: 4/4] year-view: provide GcalView implementation



commit c126a74c5a5df3126b11e6b77f812f0aff469dce
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Thu Jan 15 01:43:38 2015 -0500

    year-view: provide GcalView implementation

 src/gcal-year-view.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 9dd66d4..cbbb8e6 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -137,6 +137,20 @@ gcal_year_view_set_property (GObject      *object,
     }
 }
 
+static gchar*
+gcal_year_view_get_left_header (GcalView *view)
+{
+  GcalYearViewPrivate *priv = GCAL_YEAR_VIEW (view)->priv;
+
+  return g_strdup_printf ("%d", priv->date->year);
+}
+
+static gchar*
+gcal_year_view_get_right_header (GcalView *view)
+{
+  return g_strdup ("");
+}
+
 static void
 gcal_year_view_class_init (GcalYearViewClass *klass)
 {
@@ -173,6 +187,8 @@ static void
 gcal_view_interface_init (GcalViewIface *iface)
 {
   /* FIXME: implement what's needed */
+  iface->get_left_header = gcal_year_view_get_left_header;
+  iface->get_right_header = gcal_year_view_get_right_header;
 }
 
 static void


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