]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/toplevel.cpp
correct GetBestSize() to return correct best size, i.e. the same size as AutoSize...
[wxWidgets.git] / src / gtk / toplevel.cpp
index 173c833308c70f158bb9ecd43ad05fec0120d3e4..fc5605303fed4ce993ff89eff6a8cb1c8ed50e7a 100644 (file)
@@ -1384,8 +1384,7 @@ bool wxTopLevelWindowGTK::CanSetTransparent()
 #if GTK_CHECK_VERSION(2,10,0)
     if (!gtk_check_version(2,10,0))
     {
-        if (gtk_widget_is_composited (m_widget))
-            return true;
+        return (gtk_widget_is_composited (m_widget));
     }
     else
 #endif // In case of lower versions than gtk+-2.10.0 we could look for _NET_WM_CM_Sn ourselves