13
0

fixed width columns for LHS of editor route list

git-svn-id: svn://localhost/ardour2/branches/3.0@9782 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-07-01 23:37:42 +00:00
parent 39c75ebcd6
commit c03ea1fdb3

View File

@ -68,6 +68,8 @@ EditorRoutes::EditorRoutes (Editor* e)
, selection_countdown (0)
, name_editable (0)
{
static const int column_width = 22;
_scroller.add (_display);
_scroller.set_policy (POLICY_NEVER, POLICY_AUTOMATIC);
@ -91,7 +93,7 @@ EditorRoutes::EditorRoutes (Editor* e)
rec_state_column->set_sizing(TREE_VIEW_COLUMN_FIXED);
rec_state_column->set_alignment(ALIGN_CENTER);
rec_state_column->set_expand(false);
rec_state_column->set_fixed_width(15);
rec_state_column->set_fixed_width(column_width);
// MIDI Input Active
@ -108,7 +110,7 @@ EditorRoutes::EditorRoutes (Editor* e)
input_active_column->set_sizing(TREE_VIEW_COLUMN_FIXED);
input_active_column->set_alignment(ALIGN_CENTER);
input_active_column->set_expand(false);
input_active_column->set_fixed_width(20);
input_active_column->set_fixed_width(column_width);
// Mute enable toggle
CellRendererPixbufMulti* mute_col_renderer = manage (new CellRendererPixbufMulti());
@ -140,7 +142,7 @@ EditorRoutes::EditorRoutes (Editor* e)
solo_state_column->set_sizing(TREE_VIEW_COLUMN_FIXED);
solo_state_column->set_alignment(ALIGN_CENTER);
solo_state_column->set_expand(false);
solo_state_column->set_fixed_width(15);
solo_state_column->set_fixed_width(column_width);
// Solo isolate toggle
CellRendererPixbufMulti* solo_iso_renderer = manage (new CellRendererPixbufMulti());
@ -155,7 +157,7 @@ EditorRoutes::EditorRoutes (Editor* e)
solo_isolate_state_column->set_sizing(TREE_VIEW_COLUMN_FIXED);
solo_isolate_state_column->set_alignment(ALIGN_CENTER);
solo_isolate_state_column->set_expand(false);
solo_isolate_state_column->set_fixed_width(22);
solo_isolate_state_column->set_fixed_width(column_width);
// Solo safe toggle
CellRendererPixbufMulti* solo_safe_renderer = manage (new CellRendererPixbufMulti ());
@ -169,7 +171,7 @@ EditorRoutes::EditorRoutes (Editor* e)
solo_safe_state_column->set_sizing(TREE_VIEW_COLUMN_FIXED);
solo_safe_state_column->set_alignment(ALIGN_CENTER);
solo_safe_state_column->set_expand(false);
solo_safe_state_column->set_fixed_width(22);
solo_safe_state_column->set_fixed_width(column_width);
_display.append_column (*input_active_column);
_display.append_column (*rec_state_column);