diff options
author | Benjamin Otte <otte@redhat.com> | 2016-11-04 04:08:50 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-11-05 03:32:27 +0100 |
commit | 9707f4d3b3f205f7d5e525ccf660d1d6ccd1ee0b (patch) | |
tree | eb6b805b4d4d41aeb7436da9ceb47dbfbcd872df /gdk/quartz/gdkwindow-quartz.c | |
parent | b9955cfff1a2290c7826565049c934d237e9028f (diff) | |
download | gtk+-9707f4d3b3f205f7d5e525ccf660d1d6ccd1ee0b.tar.gz |
API: gdk: Remove title from gdk_window_new()
Use gdk_window_set_title() afterwards instead.
Diffstat (limited to 'gdk/quartz/gdkwindow-quartz.c')
-rw-r--r-- | gdk/quartz/gdkwindow-quartz.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c index c5f536742e..3a86081ba8 100644 --- a/gdk/quartz/gdkwindow-quartz.c +++ b/gdk/quartz/gdkwindow-quartz.c @@ -817,7 +817,6 @@ _gdk_quartz_display_create_window_impl (GdkDisplay *display, NSRect content_rect; NSUInteger style_mask; int nx, ny; - const char *title; /* initWithContentRect will place on the mainScreen by default. * We want to select the screen to place on ourselves. We need @@ -855,12 +854,7 @@ _gdk_quartz_display_create_window_impl (GdkDisplay *display, defer:NO screen:screen]; - if (attributes_mask & GDK_WA_TITLE) - title = attributes->title; - else - title = get_default_title (); - - gdk_window_set_title (window, title); + gdk_window_set_title (window, get_default_title ()); [impl->toplevel setOpaque:NO]; [impl->toplevel setBackgroundColor:[NSColor clearColor]]; |