mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Bug 550342 – Splash screens have a caption
2008-10-09 Richard Hult <richard@imendio.com> Bug 550342 – Splash screens have a caption * gdk/quartz/gdkwindow-quartz.c: (_gdk_window_new), (gdk_window_set_decorations): Patch from Marianne Gagnon to make splash windows borderless. svn path=/trunk/; revision=21617
This commit is contained in:
parent
7accf50a3a
commit
db0ad1ff52
@ -1,3 +1,11 @@
|
||||
2008-10-09 Richard Hult <richard@imendio.com>
|
||||
|
||||
Bug 550342 – Splash screens have a caption
|
||||
|
||||
* gdk/quartz/gdkwindow-quartz.c: (_gdk_window_new),
|
||||
(gdk_window_set_decorations): Patch from Marianne Gagnon to make
|
||||
splash windows borderless.
|
||||
|
||||
2008-10-09 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
Bug 516425 – Optionally display accelerators in popups
|
||||
|
@ -1016,12 +1016,13 @@ _gdk_window_new (GdkWindow *parent,
|
||||
content_rect = NSMakeRect (-500 - impl->width, -500 - impl->height,
|
||||
impl->width, impl->height);
|
||||
|
||||
switch (attributes->window_type)
|
||||
if (attributes->window_type == GDK_WINDOW_TEMP ||
|
||||
attributes->type_hint == GDK_WINDOW_TYPE_HINT_SPLASHSCREEN)
|
||||
{
|
||||
case GDK_WINDOW_TEMP:
|
||||
style_mask = NSBorderlessWindowMask;
|
||||
break;
|
||||
default:
|
||||
}
|
||||
else
|
||||
{
|
||||
style_mask = (NSTitledWindowMask |
|
||||
NSClosableWindowMask |
|
||||
NSMiniaturizableWindowMask |
|
||||
@ -2733,7 +2734,8 @@ gdk_window_set_decorations (GdkWindow *window,
|
||||
|
||||
impl = GDK_WINDOW_IMPL_QUARTZ (GDK_WINDOW_OBJECT (window)->impl);
|
||||
|
||||
if (decorations == 0 || GDK_WINDOW_TYPE (window) == GDK_WINDOW_TEMP)
|
||||
if (decorations == 0 || GDK_WINDOW_TYPE (window) == GDK_WINDOW_TEMP ||
|
||||
impl->type_hint == GDK_WINDOW_TYPE_HINT_SPLASHSCREEN )
|
||||
{
|
||||
new_mask = NSBorderlessWindowMask;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user