honor wxMAXIMIZE frame style, fixes #11631

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2010-01-15 17:09:29 +00:00
parent 61503542be
commit 68893d5803

View File

@ -539,6 +539,8 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
{
gtk_window_set_keep_above(GTK_WINDOW(m_widget), TRUE);
}
if (style & wxMAXIMIZE)
gtk_window_maximize(GTK_WINDOW(m_widget));
#if 0
if (!name.empty())
@ -1406,7 +1408,7 @@ bool wxTopLevelWindowGTK::SetTransparent(wxByte alpha)
bool wxTopLevelWindowGTK::CanSetTransparent()
{
// allow to override automatic detection as it's far from perfect
static const wxChar *SYSOPT_TRANSPARENT = wxT("gtk.tlw.can-set-transparent");
const wxString SYSOPT_TRANSPARENT = "gtk.tlw.can-set-transparent";
if ( wxSystemOptions::HasOption(SYSOPT_TRANSPARENT) )
{
return wxSystemOptions::GetOptionInt(SYSOPT_TRANSPARENT) != 0;