[gnome-calendar] year-view: fix bug when ListBoxRow child is NULL
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] year-view: fix bug when ListBoxRow child is NULL
- Date: Tue, 20 Jan 2015 22:20:08 +0000 (UTC)
commit 92ea54ac7b4209a93278454df58fbc05fe0101d8
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Tue Jan 20 17:15:17 2015 -0500
year-view: fix bug when ListBoxRow child is NULL
src/gcal-year-view.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 2da206e..b71aa0c 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -361,6 +361,8 @@ update_sidebar_headers (GtkListBoxRow *row,
priv = GCAL_YEAR_VIEW (user_data)->priv;
row_child = gtk_bin_get_child (GTK_BIN (row));
+ if (row_child == NULL)
+ return;
row_date = gcal_event_widget_peek_start_date (GCAL_EVENT_WIDGET (row_child));
row_shift = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (row_child), "shift"));
if (before != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]