]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/cursor.cpp
Per Robert R, apply: [ 1484667 ] Make wxWindow::Update() update native controls
[wxWidgets.git] / src / gtk / cursor.cpp
index 90d718db89d29417af1f5c77dc785f3932460d44..d02105ec8b92d052e6cce486cf6cd6b792df50a9 100644 (file)
@@ -144,12 +144,7 @@ wxCursor::wxCursor(const char bits[], int width, int  height,
 
     m_refData = new wxCursorRefData;
     M_CURSORDATA->m_cursor = gdk_cursor_new_from_pixmap(
-                 data, mask,
-#if GTK_CHECK_VERSION(2, 6, 0)
-                 fg->GetColor(), bg->GetColor(),
-#else
-                 wx_const_cast(GdkColor*, fg->GetColor()), wx_const_cast(GdkColor*, bg->GetColor()),
-#endif
+                 data, mask, fg->GetColor(), bg->GetColor(),
                  hotSpotX, hotSpotY );
 
     g_object_unref (data);
@@ -300,11 +295,7 @@ wxCursor::wxCursor( const wxImage & image )
                              (
                                 data,
                                 mask,
-#if GTK_CHECK_VERSION(2, 6, 0)
                                 fg.GetColor(), bg.GetColor(),
-#else
-                                wx_const_cast(GdkColor*, fg.GetColor()), wx_const_cast(GdkColor*, bg.GetColor()),
-#endif
                                 hotSpotX, hotSpotY
                              );