]> git.saurik.com Git - wxWidgets.git/commitdiff
Add some missing runtime gtk+ version checks. There is more to spot.
authorMart Raudsepp <leio@gentoo.org>
Tue, 14 Jun 2005 13:00:42 +0000 (13:00 +0000)
committerMart Raudsepp <leio@gentoo.org>
Tue, 14 Jun 2005 13:00:42 +0000 (13:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dcclient.cpp
src/gtk/toplevel.cpp
src/gtk/window.cpp
src/gtk1/dcclient.cpp
src/gtk1/toplevel.cpp
src/gtk1/window.cpp

index 339aab1a31c41aa9e2c3de4df13c382cd493e520..3f69545b3c2fc998d337ca88b5eaebf1eb2ff499 100644 (file)
@@ -1154,7 +1154,7 @@ void wxWindowDC::DoDrawBitmap( const wxBitmap &bitmap,
     else
     {
 #if GTK_CHECK_VERSION(2,2,0)
-        if (use_bitmap.HasPixbuf())
+        if (!gtk_check_version(2,2,0) && use_bitmap.HasPixbuf())
         {
             gdk_draw_pixbuf(m_window, m_penGC,
                             use_bitmap.GetPixbuf(),
index c8705377dc76da3aa56c38960f6876f0d37d6307..00d8ba76312a024ff0424ebedff7cee6e5190059 100644 (file)
@@ -683,7 +683,7 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style )
     //     to switch to fullscreen, which is not always available. We must
     //     check if WM supports the spec and use legacy methods if it
     //     doesn't.
-    if (method == wxX11_FS_WMSPEC)
+    if ( (method == wxX11_FS_WMSPEC) && !gtk_check_version(2,2,0) )
     {
         if (show)
             gtk_window_fullscreen( GTK_WINDOW( m_widget ) );
index 950f84f25afb1bb1cdf119d445ff12792e06bb15..345274e55d7dce1c482d79c094b96c1ba82d3713 100644 (file)
@@ -1704,6 +1704,7 @@ static gint gtk_window_button_press_callback( GtkWidget *widget,
     // GdkDisplay is a GTK+ 2.2.0 thing
 #if defined(__WXGTK20__) && GTK_CHECK_VERSION(2, 2, 0)
     if ( gdk_event->type == GDK_2BUTTON_PRESS &&
+            !gtk_check_version(2,2,0) &&
             gdk_event->button >= 1 && gdk_event->button <= 3 )
     {
         // Reset GDK internal timestamp variables in order to disable GDK
index 339aab1a31c41aa9e2c3de4df13c382cd493e520..3f69545b3c2fc998d337ca88b5eaebf1eb2ff499 100644 (file)
@@ -1154,7 +1154,7 @@ void wxWindowDC::DoDrawBitmap( const wxBitmap &bitmap,
     else
     {
 #if GTK_CHECK_VERSION(2,2,0)
-        if (use_bitmap.HasPixbuf())
+        if (!gtk_check_version(2,2,0) && use_bitmap.HasPixbuf())
         {
             gdk_draw_pixbuf(m_window, m_penGC,
                             use_bitmap.GetPixbuf(),
index c8705377dc76da3aa56c38960f6876f0d37d6307..00d8ba76312a024ff0424ebedff7cee6e5190059 100644 (file)
@@ -683,7 +683,7 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style )
     //     to switch to fullscreen, which is not always available. We must
     //     check if WM supports the spec and use legacy methods if it
     //     doesn't.
-    if (method == wxX11_FS_WMSPEC)
+    if ( (method == wxX11_FS_WMSPEC) && !gtk_check_version(2,2,0) )
     {
         if (show)
             gtk_window_fullscreen( GTK_WINDOW( m_widget ) );
index 950f84f25afb1bb1cdf119d445ff12792e06bb15..345274e55d7dce1c482d79c094b96c1ba82d3713 100644 (file)
@@ -1704,6 +1704,7 @@ static gint gtk_window_button_press_callback( GtkWidget *widget,
     // GdkDisplay is a GTK+ 2.2.0 thing
 #if defined(__WXGTK20__) && GTK_CHECK_VERSION(2, 2, 0)
     if ( gdk_event->type == GDK_2BUTTON_PRESS &&
+            !gtk_check_version(2,2,0) &&
             gdk_event->button >= 1 && gdk_event->button <= 3 )
     {
         // Reset GDK internal timestamp variables in order to disable GDK