From a16ccd50d2c6200ff99a7a507764671e9970ecf6 Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Sun, 28 Jul 2019 23:27:26 +1000 Subject: If potrace unavailable, hide from the context menu Addresses gitlab.com/inkscape/inkscape/issues/354 --- src/ui/contextmenu.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/contextmenu.cpp') diff --git a/src/ui/contextmenu.cpp b/src/ui/contextmenu.cpp index 4286bc70e..fb3cb7b29 100644 --- a/src/ui/contextmenu.cpp +++ b/src/ui/contextmenu.cpp @@ -702,6 +702,7 @@ void ContextMenu::MakeImageMenu () mi->set_sensitive( FALSE ); } +#if HAVE_POTRACE /* Trace Bitmap */ mi = Gtk::manage(new Gtk::MenuItem(_("_Trace Bitmap..."), true)); mi->signal_activate().connect(sigc::mem_fun(*this, &ContextMenu::ImageTraceBitmap)); @@ -710,6 +711,7 @@ void ContextMenu::MakeImageMenu () if (_desktop->selection->isEmpty()) { mi->set_sensitive(FALSE); } +#endif /* Trace Pixel Art */ mi = Gtk::manage(new Gtk::MenuItem(_("Trace Pixel Art"), true)); @@ -847,11 +849,13 @@ void ContextMenu::ImageEdit() } } +#if HAVE_POTRACE void ContextMenu::ImageTraceBitmap() { INKSCAPE.dialogs_unhide(); _desktop->_dlg_mgr->showDialog("Trace"); } +#endif void ContextMenu::ImageTracePixelArt() { -- cgit v1.2.3