diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-01-05 15:33:00 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-01-05 15:33:00 +0000 |
| commit | 1c0026132fe242a1041d5013ef4d7cb8bfb436b0 (patch) | |
| tree | 72fe64d4c7eb697c21021bf1db2c0aa45a4b42af /src/interface.cpp | |
| parent | Fix desktop-events backward compat (typo) (diff) | |
| download | inkscape-1c0026132fe242a1041d5013ef4d7cb8bfb436b0.tar.gz inkscape-1c0026132fe242a1041d5013ef4d7cb8bfb436b0.zip | |
GTK 2.20 compat for interface.cpp
(bzr r10848)
Diffstat (limited to 'src/interface.cpp')
| -rw-r--r-- | src/interface.cpp | 8 |
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); |
