]> git.saurik.com Git - wxWidgets.git/commitdiff
GDK_WINDOW_TYPE_HINT_SPLASHSCREEN not available in GTK+ 2.0
authorJulian Smart <julian@anthemion.co.uk>
Sun, 19 Sep 2004 16:08:05 +0000 (16:08 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 19 Sep 2004 16:08:05 +0000 (16:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/splash.cpp

index b24c83a5a1350cc4fd27e4420d0d20be541a59b2..21a93efa503c12cf240fb263aff70718fcc37ce6 100644 (file)
@@ -55,7 +55,8 @@ END_EVENT_TABLE()
 wxSplashScreen::wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style):
     wxFrame(parent, id, wxEmptyString, wxPoint(0, 0), wxSize(100, 100), style)
 {
-#ifdef __WXGTK20__
+    // At least for GTK+ 2.0, this hint is not available.
+#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,2,0)
     gtk_window_set_type_hint(GTK_WINDOW(m_widget),
                              GDK_WINDOW_TYPE_HINT_SPLASHSCREEN);
 #endif