[gnome-calendar/search-improvements] year-view: implement GcalView::get_by_uuid
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/search-improvements] year-view: implement GcalView::get_by_uuid
- Date: Mon, 5 Jan 2015 22:31:46 +0000 (UTC)
commit 503871fd9048c417d5e48d6b7e92b6693bdde995
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]