summaryrefslogtreecommitdiff
path: root/gtk2_ardour/color_theme_manager.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-12-29 21:39:03 +0100
committerRobin Gareus <robin@gareus.org>2016-12-29 23:06:15 +0100
commit1d97a0fb3e4f9294308f3b5718f61b9d6bd1504c (patch)
tree0bb9341c4bdbcfcfbe3cfaa6bb43f8eedbc15a8c /gtk2_ardour/color_theme_manager.cc
parent5091a043627f0506252a7d18b56e47dc95e99eca (diff)
Consolidate Preferences/OptionEditor
Diffstat (limited to 'gtk2_ardour/color_theme_manager.cc')
-rw-r--r--gtk2_ardour/color_theme_manager.cc16
1 files changed, 6 insertions, 10 deletions
diff --git a/gtk2_ardour/color_theme_manager.cc b/gtk2_ardour/color_theme_manager.cc
index a2553404fb..cbf341a739 100644
--- a/gtk2_ardour/color_theme_manager.cc
+++ b/gtk2_ardour/color_theme_manager.cc
@@ -61,14 +61,10 @@ ColorThemeManager::ColorThemeManager ()
, palette_window (0)
, color_theme_label (_("Color Theme"))
{
- Label* l = manage (new Label (string_compose ("<b>%1</b>", _("Colors"))));
- l->set_alignment (0, 0.5);
- l->set_use_markup (true);
- _box->pack_start (*l, false, false);
-
std::map<string,string> color_themes;
get_color_themes (color_themes);
+ int n = 0;
if (color_themes.size() > 1) {
theme_list = TreeStore::create (color_theme_columns);
@@ -108,8 +104,9 @@ ColorThemeManager::ColorThemeManager ()
hbox->set_spacing (6);
hbox->pack_start (color_theme_label, false, false);
hbox->pack_start (*align, true, true);
- _box->pack_start (*hbox, PACK_SHRINK);
hbox->show_all ();
+ table.attach (*hbox, 0, 3, n, n + 1);
+ ++n;
}
reset_button.signal_clicked().connect (sigc::mem_fun (*this, &ColorThemeManager::reset_canvas_colors));
@@ -149,8 +146,9 @@ ColorThemeManager::ColorThemeManager ()
notebook.set_size_request (400, 400);
- _box->pack_start (notebook, true, true, 6);
- _box->pack_start (reset_button, false, false);
+ table.attach (notebook, 0, 3, n, n + 1);
+ ++n;
+ table.attach (reset_button, 0, 3, n, n + 1);
color_dialog.get_colorsel()->set_has_opacity_control (true);
color_dialog.get_colorsel()->set_has_palette (true);
@@ -164,8 +162,6 @@ ColorThemeManager::ColorThemeManager ()
setup_modifiers ();
UIConfiguration::instance().ColorsChanged.connect (sigc::mem_fun (*this, &ColorThemeManager::colors_changed));
-
- _box->show_all ();
}