add_definitions(-DWORKAROUND_WINDOWS_GTK2_GLWIDGET=1)
endif ()
endif ()
+
+ if (APPLE)
+ if (GTK_TARGET EQUAL 2)
+ add_definitions(-DWORKAROUND_MACOS_GTK2_DESTROY=1)
+ endif ()
+ endif ()
endif ()
#-----------------------------------------------------------------------
XORRectangle::~XORRectangle()
{
if (initialised()) {
+#ifndef WORKAROUND_MACOS_GTK2_DESTROY
cairo_destroy(cr);
+#endif
}
}
for ( std::vector<ui::Widget>::iterator i = g_floating_windows.begin(); i != g_floating_windows.end(); ++i )
{
+#ifndef WORKAROUND_MACOS_GTK2_DESTROY
i->destroy();
+#endif
}
+#ifndef WORKAROUND_MACOS_GTK2_DESTROY
m_window.destroy();
+#endif
}
void MainFrame::SetActiveXY( XYWnd* p ){