summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-01-12 04:07:29 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-01-12 04:07:29 +0000
commitf269d7c56e3b1621322bcee47f0b2bb60920824c (patch)
tree3274e5e7354392f0344fcd571429be175a8a4fbf /gtk2_ardour/automation_time_axis.cc
parente40a8b384b085a76f5f91aa5c43fb5d580bb5032 (diff)
various tweaks to get 80% Of the way to proper use of TimeAxisView::name_label and TimeAxisView::name_entry. Not done yet, since the entry sometimes loses focus and cannot be hidden.
git-svn-id: svn://localhost/ardour2/branches/3.0@13836 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r--gtk2_ardour/automation_time_axis.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc
index 498832da02..618344fcbc 100644
--- a/gtk2_ardour/automation_time_axis.cc
+++ b/gtk2_ardour/automation_time_axis.cc
@@ -154,8 +154,9 @@ AutomationTimeAxisView::AutomationTimeAxisView (
}
/* for automation tracks, the label does not swap with an entry box. remove all that stuff */
- if ( name_label.get_parent() )
- name_hbox.remove(name_label);
+ if (name_label.get_parent()) {
+ hide_name_label ();
+ }
name_label.set_text (_name);
name_label.set_alignment (Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER);
@@ -421,14 +422,15 @@ AutomationTimeAxisView::set_height (uint32_t h)
first_call_to_set_height = false;
if (h >= preset_height (HeightNormal)) {
- name_label.show();
+ show_name_label ();
+ hide_name_entry ();
auto_button.show();
hide_button.show_all();
} else if (h >= preset_height (HeightSmall)) {
controls_table.hide_all ();
hide_name_entry ();
- name_label.hide();
+ hide_name_label ();
auto_button.hide();
}
}