summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_route_groups.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-12-06 22:02:46 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-12-06 22:02:46 +0000
commita8942f9b67761f1eff6ff26e1cf8bb7d37a2ced9 (patch)
treeb824090b195f2b5bd4484668cd8236dbd2d9f28c /gtk2_ardour/editor_route_groups.cc
parent31e203ac07cbda216fc842c68b9192d082ba8d65 (diff)
move color column for editor groups up front
git-svn-id: svn://localhost/ardour2/branches/3.0@10918 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_route_groups.cc')
-rw-r--r--gtk2_ardour/editor_route_groups.cc42
1 files changed, 20 insertions, 22 deletions
diff --git a/gtk2_ardour/editor_route_groups.cc b/gtk2_ardour/editor_route_groups.cc
index ffd1aceb15..ee670647d3 100644
--- a/gtk2_ardour/editor_route_groups.cc
+++ b/gtk2_ardour/editor_route_groups.cc
@@ -68,6 +68,12 @@ EditorRouteGroups::EditorRouteGroups (Editor* e)
_model = ListStore::create (_columns);
_display.set_model (_model);
+ Gtkmm2ext::CellRendererColorSelector* color_renderer = manage (new Gtkmm2ext::CellRendererColorSelector);
+ TreeViewColumn* color_column = manage (new TreeViewColumn ("", *color_renderer));
+ color_column->add_attribute (color_renderer->property_color(), _columns.gdkcolor);
+
+ _display.append_column (*color_column);
+
_display.append_column ("", _columns.text);
_display.append_column ("", _columns.gain);
_display.append_column ("", _columns.gain_relative);
@@ -80,28 +86,22 @@ EditorRouteGroups::EditorRouteGroups (Editor* e)
_display.append_column ("", _columns.active_state);
_display.append_column ("", _columns.is_visible);
- Gtkmm2ext::CellRendererColorSelector* color_renderer = manage (new Gtkmm2ext::CellRendererColorSelector);
- TreeViewColumn* color_column = manage (new TreeViewColumn ("", *color_renderer));
- color_column->add_attribute (color_renderer->property_color(), _columns.gdkcolor);
-
- _display.append_column (*color_column);
-
TreeViewColumn* col;
Gtk::Label* l;
ColumnInfo ci[] = {
- { 0, _("Name"), _("Name of Group") },
- { 1, S_("group|G"), _("Sharing Gain?") },
- { 2, S_("relative|Rel"), _("Relevative Gain Changes?") },
- { 3, S_("mute|M"), _("Sharing Mute?") },
- { 4, S_("solo|S"), _("Sharing Solo?") },
- { 5, _("Rec"), _("Sharing Record-enable Status?") },
- { 6, S_("monitoring|Mon"), _("Sharing Monitoring Choice?") },
- { 7, S_("selection|Sel"), _("Sharing Selected Status?") },
- { 8, S_("editing|E"), _("Sharing Editing?") },
- { 9, S_("active|A"), _("Sharing Active Status?") },
- { 10, _("Show"), _("Group is visible?") },
- { 11, _("Col"), _("Group Tab Color") },
+ { 0, _("Col"), _("Group Tab Color") },
+ { 1, _("Name"), _("Name of Group") },
+ { 2, S_("group|G"), _("Sharing Gain?") },
+ { 3, S_("relative|Rel"), _("Relevative Gain Changes?") },
+ { 4, S_("mute|M"), _("Sharing Mute?") },
+ { 5, S_("solo|S"), _("Sharing Solo?") },
+ { 6, _("Rec"), _("Sharing Record-enable Status?") },
+ { 7, S_("monitoring|Mon"), _("Sharing Monitoring Choice?") },
+ { 8, S_("selection|Sel"), _("Sharing Selected Status?") },
+ { 9, S_("editing|E"), _("Sharing Editing?") },
+ { 10, S_("active|A"), _("Sharing Active Status?") },
+ { 11, _("Show"), _("Group is visible?") },
{ -1, 0, 0 }
};
@@ -114,7 +114,7 @@ EditorRouteGroups::EditorRouteGroups (Editor* e)
l->show ();
col->set_data (X_("colnum"), GUINT_TO_POINTER(i));
- if (i == 0) {
+ if (i == 1) {
col->set_expand (true);
} else {
col->set_expand (false);
@@ -131,12 +131,10 @@ EditorRouteGroups::EditorRouteGroups (Editor* e)
/* name is directly editable */
- CellRendererText* name_cell = dynamic_cast<CellRendererText*>(_display.get_column_cell_renderer (0));
+ CellRendererText* name_cell = dynamic_cast<CellRendererText*>(_display.get_column_cell_renderer (1));
name_cell->property_editable() = true;
name_cell->signal_edited().connect (sigc::mem_fun (*this, &EditorRouteGroups::name_edit));
- /* use checkbox for the active + visible columns */
-
for (int i = 1; ci[i].index >= 0; ++i) {
CellRendererToggle* active_cell = dynamic_cast <CellRendererToggle*> (_display.get_column_cell_renderer (i));