summaryrefslogtreecommitdiff
path: root/gtk2_ardour/meter_strip.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-07-29 20:02:57 +0200
committerRobin Gareus <robin@gareus.org>2013-07-29 20:02:57 +0200
commit741bb8e7fb8e6881fffc3c56089e8f9d91df1673 (patch)
tree0b8ecc96e7328168b132ebfcf03de6257758e45f /gtk2_ardour/meter_strip.cc
parentc9340624038cd4d530b41750251531819b5a7214 (diff)
tweak meterbridge-label height
Diffstat (limited to 'gtk2_ardour/meter_strip.cc')
-rw-r--r--gtk2_ardour/meter_strip.cc27
1 files changed, 15 insertions, 12 deletions
diff --git a/gtk2_ardour/meter_strip.cc b/gtk2_ardour/meter_strip.cc
index 78dc61485a..db2f03c349 100644
--- a/gtk2_ardour/meter_strip.cc
+++ b/gtk2_ardour/meter_strip.cc
@@ -459,19 +459,21 @@ MeterStrip::on_size_allocate (Gtk::Allocation& a)
switch (mh) {
default:
case 0:
- nh = ceilf(wh * .11f);
+ nh = ceilf(wh * .12f);
if (nh < 52) nh = 52;
if (nh > 148) nh = 148;
break;
+ case 1:
+ nh = 52;
+ break;
case 2:
- nh = ceilf(wh * .22);
- if (nh < 52) nh = 52;
- if (nh > 256) nh = 256;
+ nh = 106;
break;
- case 1:
- nh = ceilf(wh * .08);
- if (nh < 36) nh = 36;
- if (nh > 128) nh = 128;
+ case 3:
+ nh = 148;
+ break;
+ case 4:
+ nh = 254;
break;
}
namebx.set_size_request(18, nh);
@@ -749,10 +751,11 @@ MeterStrip::popup_name_label_menu (GdkEventButton* ev)
RadioMenuItem::Group group;
_suspend_menu_callbacks = true;
- items.push_back (SeparatorElem());
- add_label_height_item (items, group, _("Short labels"), 1);
- add_label_height_item (items, group, _("Medium labels"), 0);
- add_label_height_item (items, group, _("Tall labels"), 2);
+ add_label_height_item (items, group, _("Variable height"), 0);
+ add_label_height_item (items, group, _("Short"), 1);
+ add_label_height_item (items, group, _("Tall"), 2);
+ add_label_height_item (items, group, _("Grande"), 3);
+ add_label_height_item (items, group, _("Venti"), 4);
m->popup (ev->button, ev->time);
_suspend_menu_callbacks = false;