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:
@@ -423,6 +423,7 @@ gcal_week_view_realize (GtkWidget *widget)
|
|||||||
|
|
||||||
parent_window = gtk_widget_get_parent_window (widget);
|
parent_window = gtk_widget_get_parent_window (widget);
|
||||||
gtk_widget_set_window (widget, parent_window);
|
gtk_widget_set_window (widget, parent_window);
|
||||||
|
g_object_ref (parent_window);
|
||||||
|
|
||||||
attributes.window_type = GDK_WINDOW_CHILD;
|
attributes.window_type = GDK_WINDOW_CHILD;
|
||||||
attributes.wclass = GDK_INPUT_ONLY;
|
attributes.wclass = GDK_INPUT_ONLY;
|
||||||
|
|||||||
Reference in New Issue
Block a user