diff options
| author | Raphael Rosch <launchpad@insaner.com> | 2016-04-14 18:19:03 +0000 |
|---|---|---|
| committer | insaner <launchpad@insaner.com> | 2016-04-14 18:19:03 +0000 |
| commit | 1dfba12bc394644560de7d2560aa03061237d0b8 (patch) | |
| tree | 7956c04251bf5943ef3b7e8c8a077674fb20001e /src/ui/interface.cpp | |
| parent | Fix c++11 flag when required on non-debian-based systems (diff) | |
| download | inkscape-1dfba12bc394644560de7d2560aa03061237d0b8.tar.gz inkscape-1dfba12bc394644560de7d2560aa03061237d0b8.zip | |
function to release object from group
Fixed bugs:
- https://launchpad.net/bugs/484041
(bzr r14845)
Diffstat (limited to 'src/ui/interface.cpp')
| -rw-r--r-- | src/ui/interface.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/interface.cpp b/src/ui/interface.cpp index a16bbc472..3e2a2004c 100644 --- a/src/ui/interface.cpp +++ b/src/ui/interface.cpp @@ -1523,6 +1523,12 @@ ContextMenu::ContextMenu(SPDesktop *desktop, SPItem *item) : MIParent.signal_activate().connect(sigc::mem_fun(*this, &ContextMenu::LeaveGroup)); MIParent.show(); append(MIParent); + + /* Pop selection out of group */ + Gtk::MenuItem* miu = Gtk::manage(new Gtk::MenuItem(_("_Pop selection out of group"), 1)); + miu->signal_activate().connect(sigc::mem_fun(*this, &ContextMenu::ActivateUngroupPopSelection)); + miu->show(); + append(*miu); } } } @@ -1920,6 +1926,12 @@ void ContextMenu::ActivateUngroup(void) sp_item_group_ungroup(static_cast<SPGroup*>(_item), children); _desktop->selection->setList(children); } + +void ContextMenu::ActivateUngroupPopSelection(void) +{ + sp_selection_ungroup_pop_selection(_desktop->selection, _desktop); +} + void ContextMenu::MakeAnchorMenu(void) { |
