]> git.saurik.com Git - wxWidgets.git/commitdiff
honor wxMAXIMIZE frame style, fixes #11631
authorPaul Cornett <paulcor@bullseye.com>
Fri, 15 Jan 2010 17:09:29 +0000 (17:09 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Fri, 15 Jan 2010 17:09:29 +0000 (17:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/toplevel.cpp

index 747e6218fa3fba49dff16bfd2867dcb0859de12b..2e2bccb0458cc7c38ec04980791c61f14b6576b6 100644 (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;