13
0

replace Lock^Wshopping-bag icon with button-sensitivity

This commit is contained in:
Robin Gareus 2013-07-11 01:59:26 +02:00
parent c27f4ed7eb
commit cb7bcb6d9f
2 changed files with 41 additions and 53 deletions

View File

@ -274,14 +274,10 @@ MeterStrip::set_button_names()
rec_enable_button->set_image (::get_icon (X_("record_normal_red")));
if (_route && _route->solo_safe()) {
solo_button->remove ();
if (solo_safe_pixbuf == 0) {
solo_safe_pixbuf =::get_icon("solo-safe-icon");
}
solo_button->set_image (solo_safe_pixbuf);
solo_button->set_text (string());
solo_button->set_sensitive(false);
} else {
solo_button->set_image (Glib::RefPtr<Gdk::Pixbuf>());
solo_button->set_sensitive(true);
}
if (!Config->get_solo_control_is_listen_control()) {
solo_button->set_text (_("S"));
} else {
@ -294,7 +290,6 @@ MeterStrip::set_button_names()
break;
}
}
}
}

View File

@ -1905,13 +1905,10 @@ MixerStrip::set_button_names ()
monitor_disk_button->set_text (_("Disk"));
if (_route && _route->solo_safe()) {
if (solo_safe_pixbuf == 0) {
solo_safe_pixbuf = ::get_icon("solo-safe-icon");
}
solo_button->set_image (solo_safe_pixbuf);
solo_button->set_text (string());
solo_button->set_sensitive(false);
} else {
solo_button->set_image (Glib::RefPtr<Gdk::Pixbuf>());
solo_button->set_sensitive(true);
}
if (!Config->get_solo_control_is_listen_control()) {
solo_button->set_text (_("Solo"));
} else {
@ -1924,7 +1921,6 @@ MixerStrip::set_button_names ()
break;
}
}
}
solo_isolated_led->set_text (_("iso"));
solo_safe_led->set_text (_("lock"));
break;
@ -1934,15 +1930,12 @@ MixerStrip::set_button_names ()
mute_button->set_text (_("M"));
monitor_input_button->set_text (_("I"));
monitor_disk_button->set_text (_("D"));
if (_route && _route->solo_safe()) {
solo_button->remove ();
if (solo_safe_pixbuf == 0) {
solo_safe_pixbuf =::get_icon("solo-safe-icon");
}
solo_button->set_image (solo_safe_pixbuf);
solo_button->set_text (string());
solo_button->set_sensitive(false);
} else {
solo_button->set_image (Glib::RefPtr<Gdk::Pixbuf>());
solo_button->set_sensitive(true);
}
if (!Config->get_solo_control_is_listen_control()) {
solo_button->set_text (_("S"));
} else {
@ -1955,7 +1948,7 @@ MixerStrip::set_button_names ()
break;
}
}
}
solo_isolated_led->set_text (_("i"));
solo_safe_led->set_text (_("L"));
break;