Pane (bool horizontal);
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 (Children::size_type n, int32_t);
+ void set_child_minsize (Gtk::Widget const &, int32_t);
GType child_type_vfunc() const;
void set_drag_cursor (Gdk::Cursor);
}
void
-Pane::set_child_minsize (Children::size_type n, int32_t minsize)
+Pane::set_child_minsize (Gtk::Widget const& w, int32_t minsize)
{
- Children::iterator c = children.begin();
-
- while (n--) {
- if (c == children.end()) {
- return;
+ for (Children::iterator c = children.begin(); c != children.end(); ++c) {
+ if (c->w == &w) {
+ c->minsize = minsize;
+ break;
}
- ++c;
}
-
- c->minsize = minsize;
}
void