mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
switch to basic round icon for MIDI input enable in editor track list; use StatefulButton to avoid visual ugliness with midi input button in mixer strip
git-svn-id: svn://localhost/ardour2/branches/3.0@9780 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
67e21fd82e
commit
0fb08e9bc3
4 changed files with 5 additions and 4 deletions
|
|
@ -96,8 +96,8 @@ EditorRoutes::EditorRoutes (Editor* e)
|
|||
// MIDI Input Active
|
||||
|
||||
CellRendererPixbufMulti* input_active_col_renderer = manage (new CellRendererPixbufMulti());
|
||||
input_active_col_renderer->set_pixbuf (0, ::get_icon("midi_socket_small"));
|
||||
input_active_col_renderer->set_pixbuf (1, ::get_icon("midi_socket_small"));
|
||||
input_active_col_renderer->set_pixbuf (0, ::get_icon("act-disabled"));
|
||||
input_active_col_renderer->set_pixbuf (1, ::get_icon("midi-input-active"));
|
||||
input_active_col_renderer->signal_changed().connect (sigc::mem_fun (*this, &EditorRoutes::on_input_active_changed));
|
||||
|
||||
TreeViewColumn* input_active_column = manage (new TreeViewColumn ("I", *input_active_col_renderer));
|
||||
|
|
|
|||
BIN
gtk2_ardour/icons/midi-input-active.png
Normal file
BIN
gtk2_ardour/icons/midi-input-active.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 395 B |
|
|
@ -404,7 +404,7 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
|
|||
if (is_midi_track()) {
|
||||
if (midi_input_enable_button == 0) {
|
||||
Image* img = manage (new Image (get_icon (X_("midi_socket_small"))));
|
||||
midi_input_enable_button = manage (new ToggleButton);
|
||||
midi_input_enable_button = manage (new StatefulToggleButton);
|
||||
midi_input_enable_button->set_name ("MixerMidiInputEnableButton");
|
||||
midi_input_enable_button->set_image (*img);
|
||||
midi_input_enable_button->signal_toggled().connect (sigc::mem_fun (*this, &MixerStrip::midi_input_toggled));
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include "gtkmm2ext/auto_spin.h"
|
||||
#include "gtkmm2ext/click_box.h"
|
||||
#include "gtkmm2ext/bindable_button.h"
|
||||
#include "gtkmm2ext/stateful_button.h"
|
||||
|
||||
#include "pbd/stateful.h"
|
||||
|
||||
|
|
@ -178,7 +179,7 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
|
|||
Gtk::Label diskstream_label;
|
||||
|
||||
Gtk::Button input_button;
|
||||
Gtk::ToggleButton* midi_input_enable_button;
|
||||
Gtkmm2ext::StatefulToggleButton* midi_input_enable_button;
|
||||
Gtk::HBox input_button_box;
|
||||
Gtk::Label input_label;
|
||||
Gtk::Button output_button;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue