summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-07-30 23:36:06 +0000
committerNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-07-31 23:59:31 +0000
commit60156dc9bf80d49c3fdd2f3f1dc902ba668ec6ca (patch)
tree2f7a279c35fb370e7a98819e548479a22868ea92
parentHide spellcheck dialog if Aspell is missing (diff)
downloadinkscape-60156dc9bf80d49c3fdd2f3f1dc902ba668ec6ca.tar.gz
inkscape-60156dc9bf80d49c3fdd2f3f1dc902ba668ec6ca.zip
Keep tutorial even if built without potrace
-rw-r--r--src/shortcuts.cpp1
-rw-r--r--src/verbs.cpp5
-rw-r--r--src/verbs.h3
3 files changed, 0 insertions, 9 deletions
diff --git a/src/shortcuts.cpp b/src/shortcuts.cpp
index 04e655ea0..0332d4d5b 100644
--- a/src/shortcuts.cpp
+++ b/src/shortcuts.cpp
@@ -670,7 +670,6 @@ static void read_shortcuts_file(char const *filename, bool const is_user_set) {
&& strcmp(verb_name, "ToolPaintBucket") != 0
&& strcmp(verb_name, "SelectionTrace") != 0
&& strcmp(verb_name, "PaintBucketPrefs") != 0
- && strcmp(verb_name, "TutorialsTracing") != 0
#endif
#if !HAVE_ASPELL
&& strcmp(verb_name, "DialogSpellcheck") != 0
diff --git a/src/verbs.cpp b/src/verbs.cpp
index dae0fea3b..66b85d9a9 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -802,7 +802,6 @@ Verb *Verb::getbyid(gchar const *id, bool verbose)
&& strcmp(id, "ToolPaintBucket") != 0
&& strcmp(id, "SelectionTrace") != 0
&& strcmp(id, "PaintBucketPrefs") != 0
- && strcmp(id, "TutorialsTracing") != 0
#endif
#if !HAVE_ASPELL
&& strcmp(id, "DialogSpellcheck") != 0
@@ -3166,13 +3165,9 @@ Verb *Verb::_base_verbs[] = {
N_("Using shape tools to create and edit shapes"), nullptr),
new TutorialVerb(SP_VERB_TUTORIAL_ADVANCED, "TutorialsAdvanced", N_("Inkscape: _Advanced"),
N_("Advanced Inkscape topics"), nullptr /*"tutorial_advanced"*/),
-
-#if HAVE_POTRACE
// TRANSLATORS: "to trace" means "to convert a bitmap to vector graphics" (to vectorize)
new TutorialVerb(SP_VERB_TUTORIAL_TRACING, "TutorialsTracing", N_("Inkscape: T_racing"), N_("Using bitmap tracing"),
nullptr /*"tutorial_tracing"*/),
-#endif
-
new TutorialVerb(SP_VERB_TUTORIAL_TRACING_PIXELART, "TutorialsTracingPixelArt", N_("Inkscape: Tracing Pixel Art"),
N_("Using Trace Pixel Art dialog"), nullptr),
new TutorialVerb(SP_VERB_TUTORIAL_CALLIGRAPHY, "TutorialsCalligraphy", N_("Inkscape: _Calligraphy"),
diff --git a/src/verbs.h b/src/verbs.h
index d70a3dbfd..91bcbf9d7 100644
--- a/src/verbs.h
+++ b/src/verbs.h
@@ -357,10 +357,7 @@ enum {
SP_VERB_TUTORIAL_BASIC,
SP_VERB_TUTORIAL_SHAPES,
SP_VERB_TUTORIAL_ADVANCED,
-
-#if HAVE_POTRACE
SP_VERB_TUTORIAL_TRACING,
-#endif
SP_VERB_TUTORIAL_TRACING_PIXELART,
SP_VERB_TUTORIAL_CALLIGRAPHY,