From 1c0026132fe242a1041d5013ef4d7cb8bfb436b0 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Thu, 5 Jan 2012 15:33:00 +0000 Subject: GTK 2.20 compat for interface.cpp (bzr r10848) --- src/interface.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/interface.cpp') diff --git a/src/interface.cpp b/src/interface.cpp index 3a4db9f6f..df5457bc8 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -1241,7 +1241,11 @@ sp_ui_drag_data_received(GtkWidget *widget, //} if (!consumed && item) { +#if GTK_CHECK_VERSION (2, 22, 0) bool fillnotstroke = (gdk_drag_context_get_actions (drag_context) != GDK_ACTION_MOVE); +#else + bool fillnotstroke = (drag_context->action != GDK_ACTION_MOVE); +#endif if (fillnotstroke && (SP_IS_SHAPE(item) || SP_IS_TEXT(item) || SP_IS_FLOWTEXT(item))) { Path *livarot_path = Path_for_item(item, true, true); @@ -1344,7 +1348,11 @@ sp_ui_drag_data_received(GtkWidget *widget, } if (!consumed && item) { +#if GTK_CHECK_VERSION (2, 22, 0) bool fillnotstroke = (gdk_drag_context_get_actions (drag_context) != GDK_ACTION_MOVE); +#else + bool fillnotstroke = (drag_context->action != GDK_ACTION_MOVE); +#endif if (fillnotstroke && (SP_IS_SHAPE(item) || SP_IS_TEXT(item) || SP_IS_FLOWTEXT(item))) { Path *livarot_path = Path_for_item(item, true, true); -- cgit v1.2.3