wxTLW::IsMaximized for wxGTK2 (patch 992743)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -234,6 +234,8 @@ wxGTK:
|
|||||||
in wxSystemSettings::GetMetric (Mart Raudsepp)
|
in wxSystemSettings::GetMetric (Mart Raudsepp)
|
||||||
- wxGTK uses GTK+ 2.x by default now, you have to pass --disable-gtk2 to
|
- wxGTK uses GTK+ 2.x by default now, you have to pass --disable-gtk2 to
|
||||||
configure if you want to use GTK+ 1.2
|
configure if you want to use GTK+ 1.2
|
||||||
|
- implemented wxTopLevel::IsMaximized() for GTK+2 and WMs that implement
|
||||||
|
freedesktop.org's wm-spec (Mart Raudsepp)
|
||||||
|
|
||||||
wxMotif:
|
wxMotif:
|
||||||
|
|
||||||
|
@@ -936,10 +936,17 @@ void wxTopLevelWindowGTK::Maximize(bool maximize)
|
|||||||
|
|
||||||
bool wxTopLevelWindowGTK::IsMaximized() const
|
bool wxTopLevelWindowGTK::IsMaximized() const
|
||||||
{
|
{
|
||||||
|
#ifdef __WXGTK20__
|
||||||
|
if(!m_widget->window)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return gdk_window_get_state(m_widget->window) & GDK_WINDOW_STATE_MAXIMIZED;
|
||||||
|
#else
|
||||||
// wxFAIL_MSG( _T("not implemented") );
|
// wxFAIL_MSG( _T("not implemented") );
|
||||||
|
|
||||||
// This is an approximation
|
// This is an approximation
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxTopLevelWindowGTK::Restore()
|
void wxTopLevelWindowGTK::Restore()
|
||||||
|
@@ -936,10 +936,17 @@ void wxTopLevelWindowGTK::Maximize(bool maximize)
|
|||||||
|
|
||||||
bool wxTopLevelWindowGTK::IsMaximized() const
|
bool wxTopLevelWindowGTK::IsMaximized() const
|
||||||
{
|
{
|
||||||
|
#ifdef __WXGTK20__
|
||||||
|
if(!m_widget->window)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return gdk_window_get_state(m_widget->window) & GDK_WINDOW_STATE_MAXIMIZED;
|
||||||
|
#else
|
||||||
// wxFAIL_MSG( _T("not implemented") );
|
// wxFAIL_MSG( _T("not implemented") );
|
||||||
|
|
||||||
// This is an approximation
|
// This is an approximation
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxTopLevelWindowGTK::Restore()
|
void wxTopLevelWindowGTK::Restore()
|
||||||
|
Reference in New Issue
Block a user