summaryrefslogtreecommitdiffstats
path: root/src/interface.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-09-22 12:14:14 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-09-22 12:14:14 +0000
commit3f61bc675d5f2f0c92d7906b8552b09df3cd411f (patch)
treea8fdb8a10dd8d071c703d2cb7e1984a528001ea3 /src/interface.cpp
parentFix for 367548 : Invert doesnt work on objects with gradients (diff)
downloadinkscape-3f61bc675d5f2f0c92d7906b8552b09df3cd411f.tar.gz
inkscape-3f61bc675d5f2f0c92d7906b8552b09df3cd411f.zip
Fix for 172222 : Move direct to specified layer
(bzr r11695)
Diffstat (limited to 'src/interface.cpp')
-rw-r--r--src/interface.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/interface.cpp b/src/interface.cpp
index acd56f8da..c3dbc47c8 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -79,6 +79,7 @@
// #include "inkscape.h"
#include "ui/dialog/dialog-manager.h"
// #include "../xml/repr.h"
+#include "ui/dialog/layer-properties.h"
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
@@ -1823,6 +1824,16 @@ void ContextMenu::MakeItemMenu (void)
mi->show();
select_same_submenu->append(*mi);
+ /* Move to layer */
+ mi = manage(new Gtk::MenuItem(_("_Move to layer ..."),1));
+ if (_desktop->selection->isEmpty()) {
+ mi->set_sensitive(FALSE);
+ } else {
+ mi->signal_activate().connect(sigc::mem_fun(*this, &ContextMenu::ItemMoveTo));
+ }
+ mi->show();
+ append(*mi);
+
/* Create link */
mi = manage(new Gtk::MenuItem(_("Create _Link"),1));
mi->signal_activate().connect(sigc::mem_fun(*this, &ContextMenu::ItemCreateLink));
@@ -1938,6 +1949,13 @@ void ContextMenu::ItemSelectThis(void)
_desktop->selection->set(_item);
}
+void ContextMenu::ItemMoveTo(void)
+{
+ Inkscape::UI::Dialogs::LayerPropertiesDialog::showMove(_desktop, _desktop->currentLayer());
+}
+
+
+
void ContextMenu::ItemCreateLink(void)
{
Inkscape::XML::Document *xml_doc = _desktop->doc()->getReprDoc();