summaryrefslogtreecommitdiffstats
path: root/src/interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.cpp')
-rw-r--r--src/interface.cpp8
1 files changed, 8 insertions, 0 deletions
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);