]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1603704 ] Fix g++ -Wall warning in gtk/src/toplevel.cpp
authorRobert Roebling <robert@roebling.de>
Mon, 27 Nov 2006 21:29:41 +0000 (21:29 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 27 Nov 2006 21:29:41 +0000 (21:29 +0000)
    (when compiling against GTK+ 2.10).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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