year-view: implement GcalView::get_by_uuid

This commit is contained in:
Erick Pérez Castellanos
2015-01-05 10:33:25 -05:00
parent c4bd918827
commit 2db94ae2cb
+8
View File
@@ -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;
}