diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-01-18 02:56:51 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-01-18 02:56:51 +0000 |
commit | fe49c8de182d40528a27b84d5530698f438de51d (patch) | |
tree | 0b559f4b38e1a4de686620b7d10972fbf7ceae47 /gtk2_ardour/audio_time_axis.cc | |
parent | 67467c92e1c202b762837555aa0daecef1bd6dda (diff) |
fix track controls height allocation to be font sensitive; fix core dump related to ownership of size menu; add nudge to keybindings; and more
git-svn-id: svn://localhost/trunk/ardour2@275 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_time_axis.cc')
-rw-r--r-- | gtk2_ardour/audio_time_axis.cc | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/gtk2_ardour/audio_time_axis.cc b/gtk2_ardour/audio_time_axis.cc index 013635f954..82286ce0af 100644 --- a/gtk2_ardour/audio_time_axis.cc +++ b/gtk2_ardour/audio_time_axis.cc @@ -80,7 +80,6 @@ #include "i18n.h" using namespace ARDOUR; -//using namespace sigc; using namespace LADSPA; using namespace Gtk; using namespace Editing; @@ -587,7 +586,7 @@ AudioTimeAxisView::set_state (const XMLNode& node) void AudioTimeAxisView::set_height (TrackHeight h) { - bool height_changed = (h != (TrackHeight)height); + bool height_changed = (h != height_style); TimeAxisView::set_height (h); @@ -595,31 +594,36 @@ AudioTimeAxisView::set_height (TrackHeight h) view->set_height ((double) height); - switch (height) { + switch (height_style) { case Largest: xml_node->add_property ("track_height", "largest"); - controls_table.show_all (); - name_label.hide (); + show_name_entry (); + hide_name_label (); + controls_table.show_all(); break; case Large: xml_node->add_property ("track_height", "large"); - controls_table.show_all (); - name_label.hide (); + show_name_entry (); + hide_name_label (); + controls_table.show_all(); break; case Larger: xml_node->add_property ("track_height", "larger"); - controls_table.show_all (); - name_label.hide (); + show_name_entry (); + hide_name_label (); + controls_table.show_all(); break; case Normal: xml_node->add_property ("track_height", "normal"); - controls_table.show_all (); - name_label.hide (); + show_name_entry (); + hide_name_label (); + controls_table.show_all(); break; case Smaller: xml_node->add_property ("track_height", "smaller"); controls_table.show_all (); - name_label.hide (); + show_name_entry (); + hide_name_label (); edit_group_button.hide (); hide_button.hide (); visual_button.hide (); @@ -631,9 +635,9 @@ AudioTimeAxisView::set_height (TrackHeight h) xml_node->add_property ("track_height", "small"); controls_table.hide_all (); controls_table.show (); + hide_name_entry (); + show_name_label (); name_label.set_text (_route.name()); - name_label.show (); - name_hbox.show (); break; } |