git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19338
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+- added wxCLOSE style for dialogs and frames
- added wxDateSpan::operator==() and !=() (Lukasz Michalski)
- use true/false throughout the library instead of TRUE/FALSE
- wxStopWatch::Start() resumes the stop watch if paused, as per the docs
- added wxDateSpan::operator==() and !=() (Lukasz Michalski)
- use true/false throughout the library instead of TRUE/FALSE
- wxStopWatch::Start() resumes the stop watch if paused, as per the docs
// All this is for Motif Window Manager "hints" and is supposed to be
// recognized by other WMs as well.
if ((style & wxCAPTION) != 0)
// All this is for Motif Window Manager "hints" and is supposed to be
// recognized by other WMs as well.
if ((style & wxCAPTION) != 0)
m_gdkDecor |= GDK_DECOR_TITLE;
m_gdkDecor |= GDK_DECOR_TITLE;
- if ((style & wxSYSTEM_MENU) != 0)
+ }
+ if ((style & wxCLOSE) != 0)
{
m_gdkFunc |= GDK_FUNC_CLOSE;
{
m_gdkFunc |= GDK_FUNC_CLOSE;
+ }
+ if ((style & wxSYSTEM_MENU) != 0)
+ {
m_gdkDecor |= GDK_DECOR_MENU;
}
if ((style & wxMINIMIZE_BOX) != 0)
m_gdkDecor |= GDK_DECOR_MENU;
}
if ((style & wxMINIMIZE_BOX) != 0)
// All this is for Motif Window Manager "hints" and is supposed to be
// recognized by other WMs as well.
if ((style & wxCAPTION) != 0)
// All this is for Motif Window Manager "hints" and is supposed to be
// recognized by other WMs as well.
if ((style & wxCAPTION) != 0)
m_gdkDecor |= GDK_DECOR_TITLE;
m_gdkDecor |= GDK_DECOR_TITLE;
- if ((style & wxSYSTEM_MENU) != 0)
+ }
+ if ((style & wxCLOSE) != 0)
{
m_gdkFunc |= GDK_FUNC_CLOSE;
{
m_gdkFunc |= GDK_FUNC_CLOSE;
+ }
+ if ((style & wxSYSTEM_MENU) != 0)
+ {
m_gdkDecor |= GDK_DECOR_MENU;
}
if ((style & wxMINIMIZE_BOX) != 0)
m_gdkDecor |= GDK_DECOR_MENU;
}
if ((style & wxMINIMIZE_BOX) != 0)
wmProp.flags |= GR_WM_FLAGS_PROPS ;
}
wmProp.flags |= GR_WM_FLAGS_PROPS ;
}
- if (style & wxSYSTEM_MENU)
{
wmProp.props |= GR_WM_PROPS_CLOSEBOX ;
wmProp.flags |= GR_WM_FLAGS_PROPS ;
{
wmProp.props |= GR_WM_PROPS_CLOSEBOX ;
wmProp.flags |= GR_WM_FLAGS_PROPS ;
hints.decorations |= MWM_DECOR_TITLE;
if ((style & wxSYSTEM_MENU) != 0)
hints.decorations |= MWM_DECOR_TITLE;
if ((style & wxSYSTEM_MENU) != 0)
- {
- hints.functions |= MWM_FUNC_CLOSE;
hints.decorations |= MWM_DECOR_MENU;
hints.decorations |= MWM_DECOR_MENU;
+
+ if ((style & wxCLOSE) != 0)
+ hints.functions |= MWM_FUNC_CLOSE;
if ((style & wxMINIMIZE_BOX) != 0)
{
if ((style & wxMINIMIZE_BOX) != 0)
{