mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-18 11:26:00 +01:00
limit width of group button to something reasonable
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5445 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
db37a0f784
commit
e7ef0efec4
1 changed files with 4 additions and 2 deletions
|
|
@ -204,11 +204,13 @@ MixerStrip::init ()
|
|||
name_button.add (name_label);
|
||||
name_button.set_name ("MixerNameButton");
|
||||
Gtkmm2ext::set_size_request_to_display_given_text (name_button, "longest label", 2, 2);
|
||||
|
||||
name_label.set_name ("MixerNameButtonLabel");
|
||||
|
||||
ARDOUR_UI::instance()->set_tip (&group_button, _("Mix group"), "");
|
||||
group_button.add (group_label);
|
||||
group_button.set_name ("MixerGroupButton");
|
||||
Gtkmm2ext::set_size_request_to_display_given_text (group_button, "Group", 2, 2);
|
||||
|
||||
group_label.set_name ("MixerGroupButtonLabel");
|
||||
|
||||
comment_button.set_name ("MixerCommentButton");
|
||||
|
|
@ -1006,7 +1008,7 @@ MixerStrip::mix_group_changed (void *ignored)
|
|||
RouteGroup *rg = _route->mix_group();
|
||||
|
||||
if (rg) {
|
||||
group_label.set_text (rg->name());
|
||||
group_label.set_text (PBD::short_version (rg->name(), 5));
|
||||
} else {
|
||||
switch (_width) {
|
||||
case Wide:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue