summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-07-30 02:17:51 +0000
committerNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-07-31 23:59:31 +0000
commit68eb62ca34fb936efa5bb35cddbf89f61e6912e2 (patch)
treeba3d5125626638b7e1a247e72134fafc4c0fb76c /src/verbs.cpp
parentIf potrace unavailable, hide from the context menu (diff)
downloadinkscape-68eb62ca34fb936efa5bb35cddbf89f61e6912e2.tar.gz
inkscape-68eb62ca34fb936efa5bb35cddbf89f61e6912e2.zip
Hide spellcheck dialog if Aspell is missing
Hide warnings emitted if Aspell/Potrace missing
Diffstat (limited to '')
-rw-r--r--src/verbs.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 065b7e10c..dae0fea3b 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -23,10 +23,6 @@
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h" // only include where actually required!
-#endif
-
#include <cstring>
#include <string>
@@ -83,7 +79,6 @@
#include "ui/dialog/new-from-template.h"
#include "ui/dialog/object-properties.h"
#include "ui/dialog/save-template-dialog.h"
-#include "ui/dialog/spellcheck.h"
#include "ui/dialog/swatches.h"
#include "ui/dialog/symbols.h"
#include "ui/icon-names.h"
@@ -613,7 +608,6 @@ SPAction *Verb::get_action(Inkscape::ActionContext const & context)
} else {
action = this->make_action(context);
- // if (action == NULL) printf("Hmm, NULL in %s\n", _name);
if (action == nullptr) printf("Hmm, NULL in %s\n", _name);
if (!_default_sensitive) {
sp_action_set_sensitive(action, 0);
@@ -808,6 +802,10 @@ 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
#endif
) {
if (verbose)