]> git.saurik.com Git - wxWidgets.git/commitdiff
Add runtime 2.4.0 check.
authorRobert Roebling <robert@roebling.de>
Sat, 21 May 2005 16:06:35 +0000 (16:06 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 21 May 2005 16:06:35 +0000 (16:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/toplevel.cpp
src/gtk1/toplevel.cpp

index 3a2e548c3f3262df8ef8e09c2f62852c50026c19..5ef9d91714378dbe62bb0998c5ae87cf403f0e91 100644 (file)
@@ -507,9 +507,12 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
 #endif
 
 #if GTK_CHECK_VERSION(2,4,0)
-    if (style & wxSTAY_ON_TOP)
+    if (!gtk_check_version(2,4,0))
     {
-        gtk_window_set_keep_above(GTK_WINDOW(m_widget), TRUE);
+        if (style & wxSTAY_ON_TOP)
+        {
+            gtk_window_set_keep_above(GTK_WINDOW(m_widget), TRUE);
+        }
     }
 #endif
 
index 3a2e548c3f3262df8ef8e09c2f62852c50026c19..5ef9d91714378dbe62bb0998c5ae87cf403f0e91 100644 (file)
@@ -507,9 +507,12 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
 #endif
 
 #if GTK_CHECK_VERSION(2,4,0)
-    if (style & wxSTAY_ON_TOP)
+    if (!gtk_check_version(2,4,0))
     {
-        gtk_window_set_keep_above(GTK_WINDOW(m_widget), TRUE);
+        if (style & wxSTAY_ON_TOP)
+        {
+            gtk_window_set_keep_above(GTK_WINDOW(m_widget), TRUE);
+        }
     }
 #endif