diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-02 19:51:59 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-02 19:51:59 +0000 |
commit | bcac4f1c96c6c5d67a145c38d2cb56429f0040da (patch) | |
tree | 8bf82c292fed9a6cbe6df9a014c49b1d996595df /gtk2_ardour/route_time_axis.cc | |
parent | 11fdd6cd18a754ab39bf64965570bad932904e47 (diff) |
rec-enable buttons are now ArdourButtons, but with a minor graphical glitch that will be solved/fixed soon-ish
git-svn-id: svn://localhost/ardour2/branches/3.0@10402 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index f6a6a9c123..f273f73e2d 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -179,10 +179,10 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt) switch (track()->mode()) { case ARDOUR::Normal: case ARDOUR::NonLayered: - rec_enable_button->add (*(manage (new Image (::get_icon (X_("record_normal_red")))))); + rec_enable_button->set_image (::get_icon (X_("record_normal_red"))); break; case ARDOUR::Destructive: - rec_enable_button->add (*(manage (new Image (::get_icon (X_("record_tape_red")))))); + rec_enable_button->set_image (::get_icon (X_("record_tape_red"))); break; } rec_enable_button->show_all (); @@ -754,10 +754,10 @@ RouteTimeAxisView::set_track_mode (TrackMode mode, bool apply_to_selection) switch (mode) { case ARDOUR::NonLayered: case ARDOUR::Normal: - rec_enable_button->add (*(manage (new Image (::get_icon (X_("record_normal_red")))))); + rec_enable_button->set_image (::get_icon (X_("record_normal_red"))); break; case ARDOUR::Destructive: - rec_enable_button->add (*(manage (new Image (::get_icon (X_("record_tape_red")))))); + rec_enable_button->set_image (::get_icon (X_("record_tape_red"))); break; } @@ -2348,7 +2348,7 @@ RouteTimeAxisView::remove_underlay (StreamView* v) void RouteTimeAxisView::set_button_names () { - rec_enable_button_label.set_text (_("r")); + rec_enable_button->set_text (_("r")); if (_route && _route->solo_safe()) { solo_button->remove (); |