diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2015-11-21 11:57:48 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2015-11-21 11:57:48 +0000 |
| commit | 37c1a351b7db98d0d09531f811e310615abd955e (patch) | |
| tree | d3c97f40b94a9c097d9c4b4e04d74c560a237f19 /src/shortcuts.cpp | |
| parent | Fix CMake build (diff) | |
| download | inkscape-37c1a351b7db98d0d09531f811e310615abd955e.tar.gz inkscape-37c1a351b7db98d0d09531f811e310615abd955e.zip | |
Hide unused verbs if Potrace is not available
(bzr r14449.1.7)
Diffstat (limited to 'src/shortcuts.cpp')
| -rw-r--r-- | src/shortcuts.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/shortcuts.cpp b/src/shortcuts.cpp index e72c16de0..194d4d2a4 100644 --- a/src/shortcuts.cpp +++ b/src/shortcuts.cpp @@ -575,7 +575,14 @@ static void read_shortcuts_file(char const *filename, bool const is_user_set) { } Inkscape::Verb *verb=Inkscape::Verb::getbyid(verb_name); - if (!verb) { + if (!verb +#if !HAVE_POTRACE + // Squash warning about disabled features + && strcmp(verb_name, "ToolPaintBucket") != 0 + && strcmp(verb_name, "SelectionTrace") != 0 + && strcmp(verb_name, "PaintBucketPrefs") != 0 +#endif + ) { g_warning("Unknown verb name: %s", verb_name); continue; } |
