week-view: increase ref count on parent window

The call to GtkWidget::unrealize was destroying GtkStack window because
of the reference increasing on GcalWeekView when setting the
parent_window as its own.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739554
This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:49 -05:00
parent 8e878f0a06
commit d301a07f4b
+1
View File
@@ -423,6 +423,7 @@ gcal_week_view_realize (GtkWidget *widget)
parent_window = gtk_widget_get_parent_window (widget);
gtk_widget_set_window (widget, parent_window);
g_object_ref (parent_window);
attributes.window_type = GDK_WINDOW_CHILD;
attributes.wclass = GDK_INPUT_ONLY;