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/interface.cpp | |
| 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/interface.cpp')
| -rw-r--r-- | src/interface.cpp | 12 |
1 files changed, 12 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()) { |
