diff options
| author | Ted Gould <ted@gould.cx> | 2006-05-02 05:31:42 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2006-05-02 05:31:42 +0000 |
| commit | 4d904297411d556bca96889406bc7af08917d5ed (patch) | |
| tree | 36978b2a02183d74c08e08204a6c6e3e67c73be5 /src/extension/implementation | |
| parent | r11622@tres: ted | 2006-05-01 22:15:49 -0700 (diff) | |
| download | inkscape-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 'src/extension/implementation')
| -rw-r--r-- | src/extension/implementation/script.cpp | 10 |
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); } /** |
