Commit d06472f3 authored by Richard Hult's avatar Richard Hult Committed by Richard Hult

Use SetSystemUIMode instead of hiding and showing the menubar.

2008-05-19  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c: (gdk_window_hide),
	(gdk_window_fullscreen), (gdk_window_unfullscreen): Use
	SetSystemUIMode instead of hiding and showing the menubar.

svn path=/trunk/; revision=20114
parent 20ee3a02
2008-05-19 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c: (gdk_window_hide),
(gdk_window_fullscreen), (gdk_window_unfullscreen): Use
SetSystemUIMode instead of hiding and showing the menubar.
2008-05-19 Federico Mena Quintero <federico@novell.com>
http://bugzilla.gnome.org/show_bug.cgi?id=322298 - Save dialog
......
......@@ -1250,7 +1250,7 @@ gdk_window_hide (GdkWindow *window)
/* Make sure we're not stuck in fullscreen mode. */
if (get_fullscreen_geometry (window))
ShowMenuBar ();
SetSystemUIMode (kUIModeNormal, 0);
if (GDK_WINDOW_DESTROYED (window))
return;
......@@ -2974,7 +2974,7 @@ gdk_window_fullscreen (GdkWindow *window)
frame.size.width, frame.size.height);
}
HideMenuBar ();
SetSystemUIMode (kUIModeAllHidden, kUIOptionAutoShowMenuBar);
gdk_synthesize_window_state (window, 0, GDK_WINDOW_STATE_FULLSCREEN);
}
......@@ -2990,7 +2990,7 @@ gdk_window_unfullscreen (GdkWindow *window)
geometry = get_fullscreen_geometry (window);
if (geometry)
{
ShowMenuBar ();
SetSystemUIMode (kUIModeNormal, 0);
move_resize_window_internal (window,
geometry->x,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment