diff options
| author | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-07-30 02:17:51 +0000 |
|---|---|---|
| committer | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-07-31 23:59:31 +0000 |
| commit | 68eb62ca34fb936efa5bb35cddbf89f61e6912e2 (patch) | |
| tree | ba3d5125626638b7e1a247e72134fafc4c0fb76c /src/ui/desktop | |
| parent | If potrace unavailable, hide from the context menu (diff) | |
| download | inkscape-68eb62ca34fb936efa5bb35cddbf89f61e6912e2.tar.gz inkscape-68eb62ca34fb936efa5bb35cddbf89f61e6912e2.zip | |
Hide spellcheck dialog if Aspell is missing
Hide warnings emitted if Aspell/Potrace missing
Diffstat (limited to 'src/ui/desktop')
| -rw-r--r-- | src/ui/desktop/menubar.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/desktop/menubar.cpp b/src/ui/desktop/menubar.cpp index 9340c682a..39496afad 100644 --- a/src/ui/desktop/menubar.cpp +++ b/src/ui/desktop/menubar.cpp @@ -473,7 +473,14 @@ build_menu(Gtk::MenuShell* menu, Inkscape::XML::Node* xml, Inkscape::UI::View::V menu->append(*menuitem); } } - } else { + } else if (true +#if !HAVE_POTRACE + && !strcmp(verb_name.c_str(), "SelectionTrace") +#endif +#if !HAVE_ASPELL + && !strcmp(verb_name.c_str(), "DialogSpellcheck") +#endif + ) { std::cerr << "build_menu: no verb with id: " << verb_name << std::endl; } } |
