This seems to be required, although there is confusion in Gtkmm3 about this.
typedef std::list<Child> Children;
Pane (bool horizontal);
+ ~Pane();
+
void set_divider (std::vector<float>::size_type divider, float fract);
float get_divider (std::vector<float>::size_type divider = 0);
void set_child_minsize (Gtk::Widget const &, int32_t);
}
}
+Pane::~Pane ()
+{
+ for (Children::iterator c = children.begin(); c != children.end(); ++c) {
+ c->w->unparent ();
+ }
+}
+
void
Pane::set_child_minsize (Gtk::Widget const& w, int32_t minsize)
{
{
for (Children::iterator c = children.begin(); c != children.end(); ++c) {
if (c->w == w) {
+ w->unparent ();
children.erase (c);
break;
}
}
-
- w->unparent ();
}
void