mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
desensitize remove button for start location; fix inadvertent use of _() when looking up widget data - fixes IOSelector not working for non-en_* users
git-svn-id: svn://localhost/ardour2/trunk@1130 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d36c15fd45
commit
ac23d13c6a
2 changed files with 5 additions and 5 deletions
|
|
@ -428,9 +428,9 @@ IOSelector::display_ports ()
|
|||
tview->set_model (port_model);
|
||||
tview->append_column (really_short_name, port_display_columns.displayed_name);
|
||||
tview->get_selection()->set_mode (SELECTION_SINGLE);
|
||||
tview->set_data ("port", port);
|
||||
tview->set_data (X_("port"), port);
|
||||
tview->set_headers_visible (true);
|
||||
tview->set_name ("IOSelectorPortList");
|
||||
tview->set_name (X_("IOSelectorPortList"));
|
||||
|
||||
port_box.pack_start (*tview);
|
||||
port_displays.insert (port_displays.end(), tview);
|
||||
|
|
@ -614,7 +614,7 @@ IOSelector::connection_button_release (GdkEventButton *ev, TreeView *treeview)
|
|||
|
||||
/* path is valid */
|
||||
ustring connected_port_name = (*iter)[port_display_columns.full_name];
|
||||
Port *port = reinterpret_cast<Port *> (treeview->get_data (_("port")));
|
||||
Port *port = reinterpret_cast<Port *> (treeview->get_data (X_("port")));
|
||||
|
||||
if (for_input) {
|
||||
Port *p = session.engine().get_port_by_name (connected_port_name);
|
||||
|
|
@ -663,7 +663,7 @@ IOSelector::select_treeview (TreeView* tview)
|
|||
*/
|
||||
|
||||
Glib::Mutex::Lock lm (port_display_lock);
|
||||
Port* port = reinterpret_cast<Port *> (tview->get_data (_("port")));
|
||||
Port* port = reinterpret_cast<Port *> (tview->get_data (X_("port")));
|
||||
|
||||
selected_port = port;
|
||||
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ LocationEditRow::set_location (Location *loc)
|
|||
the row spacing, so make it insensitive (paul).
|
||||
*/
|
||||
|
||||
if (location->is_end()) {
|
||||
if (location->is_end() || location->is_start()) {
|
||||
remove_button.set_sensitive (false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue