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/contextmenu.cpp | |
| 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 '')
| -rw-r--r-- | src/ui/contextmenu.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/contextmenu.cpp b/src/ui/contextmenu.cpp index fb3cb7b29..b33653bfd 100644 --- a/src/ui/contextmenu.cpp +++ b/src/ui/contextmenu.cpp @@ -929,11 +929,13 @@ void ContextMenu::MakeTextMenu () mi->show(); insert(*mi,positionOfLastDialog++); +#if HAVE_ASPELL /* Spellcheck dialog */ mi = Gtk::manage(new Gtk::MenuItem(_("Check Spellin_g..."), true)); mi->signal_activate().connect(sigc::mem_fun(*this, &ContextMenu::SpellcheckSettings)); mi->show(); insert(*mi,positionOfLastDialog++); +#endif } void ContextMenu::TextSettings () @@ -947,11 +949,13 @@ void ContextMenu::TextSettings () void ContextMenu::SpellcheckSettings () { +#if HAVE_ASPELL if (_desktop->selection->isEmpty()) { _desktop->selection->set(_item); } _desktop->_dlg_mgr->showDialog("SpellCheck"); +#endif } void ContextMenu::ShiftIcons() |
