[gnome-calendar] year-view: implement GcalView::get_by_uuid



commit 2db94ae2cb3f6954bb9bbd53c1f6494249d319d9
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Mon Dec 29 16:36:16 2014 -0500

    year-view: implement GcalView::get_by_uuid

 src/gcal-year-view.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index e2ae043..68363d6 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -1005,6 +1005,14 @@ static GtkWidget*
 gcal_year_view_get_by_uuid (GcalView    *view,
                             const gchar *uuid)
 {
+  GcalSubscriberPrivate *priv;
+  GList *l;
+
+  priv = GCAL_SUBSCRIBER (view)->priv;
+  l = g_hash_table_lookup (priv->children, uuid);
+  if (l != NULL)
+    return (GtkWidget*) l->data;
+
   return NULL;
 }
 


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