summaryrefslogtreecommitdiffstats
path: root/src/extension/implementation/script.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2006-05-02 05:31:42 +0000
committergouldtj <gouldtj@users.sourceforge.net>2006-05-02 05:31:42 +0000
commit4d904297411d556bca96889406bc7af08917d5ed (patch)
tree36978b2a02183d74c08e08204a6c6e3e67c73be5 /src/extension/implementation/script.cpp
parentr11622@tres: ted | 2006-05-01 22:15:49 -0700 (diff)
downloadinkscape-4d904297411d556bca96889406bc7af08917d5ed.tar.gz
inkscape-4d904297411d556bca96889406bc7af08917d5ed.zip
r11623@tres: ted | 2006-05-01 22:17:40 -0700
Adding in passing of the view data into the autogui build so that it will get to the parameters appropriately. (bzr r696)
Diffstat (limited to '')
-rw-r--r--src/extension/implementation/script.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp
index e28015f6f..bd9b085e2 100644
--- a/src/extension/implementation/script.cpp
+++ b/src/extension/implementation/script.cpp
@@ -380,7 +380,15 @@ Script::prefs_output(Inkscape::Extension::Output *module)
Gtk::Widget *
Script::prefs_effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View *view)
{
- return module->autogui(NULL, NULL);
+ SPDocument * current_document = view->doc();
+
+ using Inkscape::Util::GSListConstIterator;
+ GSListConstIterator<SPItem *> selected = sp_desktop_selection((SPDesktop *)view)->itemList();
+ Inkscape::XML::Node * first_select = NULL;
+ if (selected != NULL)
+ first_select = SP_OBJECT_REPR(*selected);
+
+ return module->autogui(current_document, first_select);
}
/**