[gtk+/gtk-3-6] quartz: retain content view when switching over toplevel. (cherry picked from commit 1d410ec960b607b
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-6] quartz: retain content view when switching over toplevel. (cherry picked from commit 1d410ec960b607b
- Date: Thu, 17 Jan 2013 13:59:16 +0000 (UTC)
commit 2b26ca7371b3e468ae99769db1172841368ca2d0
Author: Kristian Rietveld <kris loopnest org>
Date: Fri Dec 28 22:11:13 2012 +0100
quartz: retain content view when switching over toplevel.
(cherry picked from commit 1d410ec960b607b415b327cce3a719e193de4283)
gdk/quartz/gdkwindow-quartz.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index a1fcfee..b83adfc 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -2605,7 +2605,7 @@ gdk_quartz_window_set_decorations (GdkWindow *window,
{
NSRect rect;
- old_view = [impl->toplevel contentView];
+ old_view = [[impl->toplevel contentView] retain];
rect = [impl->toplevel frame];
@@ -2680,6 +2680,8 @@ gdk_quartz_window_set_decorations (GdkWindow *window,
*/
if (![old_view isOpaque] && [impl->toplevel hasShadow])
[(GdkQuartzView*)old_view setNeedsInvalidateShadow:YES];
+
+ [old_view release];
}
GDK_QUARTZ_RELEASE_POOL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]