[gnome-calendar/ui-rewrite] week-view: increase ref count on parent window
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/ui-rewrite] week-view: increase ref count on parent window
- Date: Mon, 3 Nov 2014 17:00:56 +0000 (UTC)
commit 37cf2c2b88f82cfe52acb33ce4f5e7d41ae17253
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Nov 3 11:55:37 2014 -0500
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
src/gcal-week-view.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-week-view.c b/src/gcal-week-view.c
index 6c37e00..83422a9 100644
--- a/src/gcal-week-view.c
+++ b/src/gcal-week-view.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]