diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-09-23 02:44:45 +0000 |
|---|---|---|
| committer | John Smith <john.smith7545@yahoo.com> | 2012-09-23 02:44:45 +0000 |
| commit | a17956f9fa43854a9b0f3b0a72542cdadfad916a (patch) | |
| tree | 23c44d450bff5e399a7d195e407c99413d4a459e /src | |
| parent | Fix for 367548 : Invert doesnt work on objects with gradients (diff) | |
| download | inkscape-a17956f9fa43854a9b0f3b0a72542cdadfad916a.tar.gz inkscape-a17956f9fa43854a9b0f3b0a72542cdadfad916a.zip | |
Fix for 170395 : Add Trace Bitmap to context menu of images
(bzr r11697)
Diffstat (limited to 'src')
| -rw-r--r-- | src/interface.cpp | 12 | ||||
| -rw-r--r-- | src/interface.h | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/interface.cpp b/src/interface.cpp index c3dbc47c8..0db046559 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -2097,6 +2097,12 @@ void ContextMenu::MakeImageMenu (void) mi->set_sensitive( FALSE ); } + /* Trace Bitmap */ + mi = manage(new Gtk::MenuItem(_("_Trace Bitmap..."),1)); + mi->signal_activate().connect(sigc::mem_fun(*this, &ContextMenu::ImageTraceBitmap)); + mi->show(); + insert(*mi,positionOfLastDialog++); + /* Embed image */ if (Inkscape::Verb::getbyid( "org.ekips.filter.embedselectedimages" )) { mi = manage(new Gtk::MenuItem(C_("Context menu", "Embed Image"))); @@ -2208,6 +2214,12 @@ void ContextMenu::ImageEdit(void) } } +void ContextMenu::ImageTraceBitmap(void) +{ + inkscape_dialogs_unhide(); + _desktop->_dlg_mgr->showDialog("Trace"); +} + void ContextMenu::ImageEmbed(void) { if (_desktop->selection->isEmpty()) { diff --git a/src/interface.h b/src/interface.h index ef520be28..891e39957 100644 --- a/src/interface.h +++ b/src/interface.h @@ -225,6 +225,11 @@ class ContextMenu : public Gtk::Menu void ImageEmbed(void); /** + * callback, is executed on clicking the "Trace Bitmap" menu entry + */ + void ImageTraceBitmap(void); + + /** * callback, is executed on clicking the "Extract Image" menu entry */ void ImageExtract(void); |
