diff options
author | Benjamin Otte <otte@redhat.com> | 2016-10-27 23:27:49 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-10-28 05:22:49 +0200 |
commit | f420dc74566ef1c284cd22314017e12624d51a15 (patch) | |
tree | 106d8b2ae93b77b541c6e7431fc81671c6a77ff9 /gdk/quartz | |
parent | 6cc94ff1763635d68c0eb2bf7c5f52ed0142b554 (diff) | |
download | gtk+-f420dc74566ef1c284cd22314017e12624d51a15.tar.gz |
API: gdk: Remove gdk_window_get_visual()
With it, remove window->visual.
Diffstat (limited to 'gdk/quartz')
-rw-r--r-- | gdk/quartz/GdkQuartzView.c | 4 | ||||
-rw-r--r-- | gdk/quartz/gdkwindow-quartz.c | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/gdk/quartz/GdkQuartzView.c b/gdk/quartz/GdkQuartzView.c index 97c60d051c..e945b2fb5e 100644 --- a/gdk/quartz/GdkQuartzView.c +++ b/gdk/quartz/GdkQuartzView.c @@ -574,9 +574,7 @@ if (GDK_WINDOW_DESTROYED (gdk_window)) return YES; - /* A view is opaque if its GdkWindow doesn't have the RGBA visual */ - return gdk_window_get_visual (gdk_window) != - gdk_screen_get_rgba_visual (_gdk_screen); + return NO; } -(void)drawRect: (NSRect)rect diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c index 0bcfac5d42..7cd39f2cfc 100644 --- a/gdk/quartz/gdkwindow-quartz.c +++ b/gdk/quartz/gdkwindow-quartz.c @@ -862,11 +862,8 @@ _gdk_quartz_display_create_window_impl (GdkDisplay *display, gdk_window_set_title (window, title); - if (gdk_window_get_visual (window) == gdk_screen_get_rgba_visual (_gdk_screen)) - { - [impl->toplevel setOpaque:NO]; - [impl->toplevel setBackgroundColor:[NSColor clearColor]]; - } + [impl->toplevel setOpaque:NO]; + [impl->toplevel setBackgroundColor:[NSColor clearColor]]; content_rect.origin.x = 0; content_rect.origin.y = 0; |