summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 67eef6e)
raw | patch | inline | side by side (parent: 67eef6e)
| author | gouldtj <gouldtj@users.sourceforge.net> | |
| Tue, 2 May 2006 05:27:46 +0000 (05:27 +0000) | ||
| committer | gouldtj <gouldtj@users.sourceforge.net> | |
| Tue, 2 May 2006 05:27:46 +0000 (05:27 +0000) |
Forgot to have GTK manage the memory for the custom widgets.
| src/extension/parameter.cpp | patch | blob | history |
index ce6c8c272634a19baadfe1558c19da1c3fd270d0..0e67d96c85b741794be3d98e96a88aef205416b9 100644 (file)
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);
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);