diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-12-05 10:54:58 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-12-05 10:54:58 +0000 |
| commit | b522585cba116b62b64666c472958f6e9acc3739 (patch) | |
| tree | 633b89242e5fc8cea5c4fd3c478e1221a1f27abe /src/actions | |
| parent | fix coding style (diff) | |
| download | inkscape-b522585cba116b62b64666c472958f6e9acc3739.tar.gz inkscape-b522585cba116b62b64666c472958f6e9acc3739.zip | |
Support compiling with Debian 9.
Diffstat (limited to 'src/actions')
| -rw-r--r-- | src/actions/actions-output.cpp | 6 | ||||
| -rw-r--r-- | src/actions/actions-transform.cpp | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/actions/actions-output.cpp b/src/actions/actions-output.cpp index a9225b49d..0ea7f6dc4 100644 --- a/src/actions/actions-output.cpp +++ b/src/actions/actions-output.cpp @@ -219,6 +219,9 @@ add_actions_output(InkscapeApplication* app) Glib::VariantType String(Glib::VARIANT_TYPE_STRING); Glib::VariantType BString(Glib::VARIANT_TYPE_BYTESTRING); + // Debian 9 has 2.50.0 +#if GLIB_CHECK_VERSION(2, 52, 0) + // Matches command line options app->add_action_with_parameter( "export-type", String, sigc::bind<InkscapeApplication*>(sigc::ptr_fun(&export_type), app)); app->add_action_with_parameter( "export-filename", String, sigc::bind<InkscapeApplication*>(sigc::ptr_fun(&export_filename), app)); // MAY NOT WORK DUE TO std::string @@ -247,6 +250,9 @@ add_actions_output(InkscapeApplication* app) // Extra app->add_action( "export-do", sigc::bind<InkscapeApplication*>(sigc::ptr_fun(&export_do), app)); +#else + std::cerr << "add_actions: Some actions require Glibmm 2.52, compiled with: " << glib_major_version << "." << glib_minor_version << std::endl; +#endif } /* diff --git a/src/actions/actions-transform.cpp b/src/actions/actions-transform.cpp index 91f12df58..2480363fa 100644 --- a/src/actions/actions-transform.cpp +++ b/src/actions/actions-transform.cpp @@ -35,7 +35,12 @@ add_actions_transform(InkscapeApplication* app) Glib::VariantType Double(Glib::VARIANT_TYPE_DOUBLE); Glib::VariantType String(Glib::VARIANT_TYPE_STRING); + // Debian 9 has 2.50.0 +#if GLIB_CHECK_VERSION(2, 52, 0) + app->add_action_with_parameter( "transform-rotate", Double, sigc::bind<InkscapeApplication*>(sigc::ptr_fun(&transform_rotate), app)); + +#endif } |
