1 Nov 2009 04:20
Agar: r8498 - trunk/gui
Author: vedge
Date: 2009-11-01 00:20:15 -0300 (Sun, 01 Nov 2009)
New Revision: 8498
Modified:
trunk/gui/window.c
Log:
hide window before detaching tbar in Detach()
Modified: trunk/gui/window.c
===================================================================
--- trunk/gui/window.c 2009-10-30 14:27:24 UTC (rev 8497)
+++ trunk/gui/window.c 2009-11-01 03:20:15 UTC (rev 8498)
<at> <at> -244,6 +244,10 <at> <at>
if (drv == NULL || !AG_ObjectIsClass(drv, "AG_Driver:*"))
AG_FatalError("Window is not attached to a Driver");
#endif
+ /* Implicitely hide the window. */
+ if (win->visible)
+ AG_WindowHide(win);
+
/* The window's titlebar and icon are no longer safe to use. */
if (win->tbar != NULL) {
AG_ObjectDetach(win->tbar);
<at> <at> -262,9 +266,6 <at> <at>
agWindowToFocus = NULL;
}
- /* Implicitely hide the window. */
- AG_WindowHide(win);
(Continue reading)
RSS Feed