m_refData = new wxCursorRefData;
M_CURSORDATA->m_cursor = gdk_cursor_new_from_pixmap(
- data, mask, fg->GetColor(), bg->GetColor(),
+ 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 );
g_object_unref (data);
(
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
);