diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2009-06-21 19:36:30 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2009-06-21 19:36:30 +0000 |
| commit | 5d06f6e9efeaca4a7cb8ec6ee8f79800bcdb145f (patch) | |
| tree | 2787d70e534d62286d1d3808ca268160b9fdeff8 /src/live_effects/effect.cpp | |
| parent | Removing Convolve matrix from Pixel smear and Removing Pixel smear glossy, ch... (diff) | |
| download | inkscape-5d06f6e9efeaca4a7cb8ec6ee8f79800bcdb145f.tar.gz inkscape-5d06f6e9efeaca4a7cb8ec6ee8f79800bcdb145f.zip | |
Remove 'Is visible?' checkbox from LPE editor because it duplicates functionality
(bzr r8125)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 316495eb4..de0535448 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -278,6 +278,7 @@ Effect::Effect(LivePathEffectObject *lpeobject) is_ready(false) // is automatically set to false if providesOwnFlashPaths() is not overridden { registerParameter( dynamic_cast<Parameter *>(&is_visible) ); + is_visible.widget_is_visible = false; } Effect::~Effect() @@ -550,13 +551,15 @@ Effect::newWidget(Gtk::Tooltips * tooltips) std::vector<Parameter *>::iterator it = param_vector.begin(); while (it != param_vector.end()) { - Parameter * param = *it; - Gtk::Widget * widg = param->param_newWidget(tooltips); - Glib::ustring * tip = param->param_getTooltip(); - if (widg) { - vbox->pack_start(*widg, true, true, 2); - if (tip != NULL) { - tooltips->set_tip(*widg, *tip); + if ((*it)->widget_is_visible) { + Parameter * param = *it; + Gtk::Widget * widg = param->param_newWidget(tooltips); + Glib::ustring * tip = param->param_getTooltip(); + if (widg) { + vbox->pack_start(*widg, true, true, 2); + if (tip != NULL) { + tooltips->set_tip(*widg, *tip); + } } } |
