int pos;
XMLProperty const * prop;
char buf[32];
- XMLNode* node = ARDOUR_UI::instance()->editor_settings();
+ XMLNode* geometry = ARDOUR_UI::instance()->editor_settings();
enum Pane {
Horizontal = 0x1,
static Pane done;
- XMLNode* geometry = find_named_node (*node, "geometry");
-
if (which == static_cast<Paned*> (&edit_pane)) {
if (done & Horizontal) {
pos = atoi (prop->value());
}
- if (GTK_WIDGET(edit_pane.gobj())->allocation.width > pos) {
+ if (edit_pane.get_allocation().get_width() > pos) {
edit_pane.set_position (pos);
}
pos = atoi (prop->value());
}
- if (GTK_WIDGET(editor_summary_pane.gobj())->allocation.height > pos) {
+ if (editor_summary_pane.get_allocation().get_height() > pos) {
editor_summary_pane.set_position (pos);
}