Mixer list pane can shrink to zero width.
This commit is contained in:
parent
f46d3dbfaf
commit
4b230069f8
@ -204,7 +204,7 @@ Mixer_UI::Mixer_UI ()
|
|||||||
#else
|
#else
|
||||||
global_hpacker.pack_start (out_packer, false, false, 12);
|
global_hpacker.pack_start (out_packer, false, false, 12);
|
||||||
#endif
|
#endif
|
||||||
list_hpane.pack1(list_vpacker, false, false);
|
list_hpane.pack1(list_vpacker, false, true);
|
||||||
list_hpane.pack2(global_hpacker, true, false);
|
list_hpane.pack2(global_hpacker, true, false);
|
||||||
|
|
||||||
rhs_pane1.signal_size_allocate().connect (sigc::bind (sigc::mem_fun(*this, &Mixer_UI::pane_allocation_handler),
|
rhs_pane1.signal_size_allocate().connect (sigc::bind (sigc::mem_fun(*this, &Mixer_UI::pane_allocation_handler),
|
||||||
@ -1734,10 +1734,11 @@ Mixer_UI::pane_allocation_handler (Allocation&, Gtk::Paned* which)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!geometry || (prop = geometry->property("mixer-list-hpane-pos")) == 0) {
|
if (!geometry) {
|
||||||
pos = 75;
|
pos = 0;
|
||||||
snprintf (buf, sizeof(buf), "%d", pos);
|
snprintf (buf, sizeof(buf), "%d", pos);
|
||||||
} else {
|
} else {
|
||||||
|
prop = geometry->property("mixer-list-hpane-pos");
|
||||||
pos = atoi (prop->value());
|
pos = atoi (prop->value());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user