diff options
| author | Ted Gould <ted@gould.cx> | 2006-05-02 05:27:46 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2006-05-02 05:27:46 +0000 |
| commit | 6c6d140df9f5f31265c1196906202eac7828c1ca (patch) | |
| tree | 21be1bdc00fcefa24e7671a04bf5a00279de82a2 /src/extension/parameter.cpp | |
| parent | r11512@tres: ted | 2006-04-24 21:36:08 -0700 (diff) | |
| download | inkscape-6c6d140df9f5f31265c1196906202eac7828c1ca.tar.gz inkscape-6c6d140df9f5f31265c1196906202eac7828c1ca.zip | |
r11513@tres: ted | 2006-04-24 21:43:16 -0700
Forgot to have GTK manage the memory for the custom widgets.
(bzr r683)
Diffstat (limited to 'src/extension/parameter.cpp')
| -rw-r--r-- | src/extension/parameter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extension/parameter.cpp b/src/extension/parameter.cpp index ce6c8c272..0e67d96c8 100644 --- a/src/extension/parameter.cpp +++ b/src/extension/parameter.cpp @@ -601,7 +601,7 @@ ParamFloat::get_widget (void) label->show(); hbox->pack_start(*label, true, true); - ParamFloatAdjustment * fadjust = new ParamFloatAdjustment(this); + ParamFloatAdjustment * fadjust = Gtk::manage(new ParamFloatAdjustment(this)); Gtk::SpinButton * spin = Gtk::manage(new Gtk::SpinButton(*fadjust, 0.1, 1)); spin->show(); hbox->pack_start(*spin, false, false); @@ -625,7 +625,7 @@ ParamInt::get_widget (void) label->show(); hbox->pack_start(*label, true, true); - ParamIntAdjustment * fadjust = new ParamIntAdjustment(this); + ParamIntAdjustment * fadjust = Gtk::manage(new ParamIntAdjustment(this)); Gtk::SpinButton * spin = Gtk::manage(new Gtk::SpinButton(*fadjust, 1.0, 0)); spin->show(); hbox->pack_start(*spin, false, false); |
