Add runtime 2.4.0 check.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2005-05-21 16:06:35 +00:00
parent bbcd40851c
commit 81a3313aa0
2 changed files with 10 additions and 4 deletions

View 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