diff options
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/dialog/livepatheffect-editor.cpp | 5 | ||||
| -rw-r--r-- | src/ui/dialog/livepatheffect-editor.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index b1dfda573..93e17c324 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -97,6 +97,7 @@ LivePathEffectEditor::~LivePathEffectEditor() { if (effectwidget) { effectcontrol_vbox.remove(*effectwidget); + delete effectwidget; effectwidget = NULL; } @@ -111,11 +112,12 @@ LivePathEffectEditor::showParams(LivePathEffect::Effect* effect) { if (effectwidget) { effectcontrol_vbox.remove(*effectwidget); + delete effectwidget; effectwidget = NULL; } explain_label.set_markup("<b>" + effect->getName() + "</b>"); - effectwidget = effect->getWidget(); + effectwidget = effect->newWidget(&tooltips); if (effectwidget) { effectcontrol_vbox.pack_start(*effectwidget, true, true); } @@ -130,6 +132,7 @@ LivePathEffectEditor::showText(Glib::ustring const &str) { if (effectwidget) { effectcontrol_vbox.remove(*effectwidget); + delete effectwidget; effectwidget = NULL; } diff --git a/src/ui/dialog/livepatheffect-editor.h b/src/ui/dialog/livepatheffect-editor.h index 2ec1f9d14..aed17434d 100644 --- a/src/ui/dialog/livepatheffect-editor.h +++ b/src/ui/dialog/livepatheffect-editor.h @@ -18,6 +18,7 @@ #include <gtkmm/label.h> #include <gtkmm/comboboxtext.h> #include <gtkmm/frame.h> +#include <gtkmm/tooltip.h> #include "ui/widget/combo-enums.h" #include "live_effects/effect.h" @@ -60,6 +61,7 @@ private: Gtk::Frame effectcontrol_frame; Gtk::HBox effectapplication_hbox; Gtk::VBox effectcontrol_vbox; + Gtk::Tooltips tooltips; SPDesktop * current_desktop; |
