, 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);
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));
notebook.set_size_request (400, 400);
- _box->pack_start (notebook, true, true, 12);
- _box->pack_start (reset_button, false, false, 12);
+ 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);
setup_modifiers ();
UIConfiguration::instance().ColorsChanged.connect (sigc::mem_fun (*this, &ColorThemeManager::colors_changed));
-
- _box->show_all ();
}
}
+void
+ColorThemeManager::add_to_page (OptionEditorPage* p)
+{
+ int const n = p->table.property_n_rows();
+ int m = n + 1;
+ if (!_note.empty ()) {
+ ++m;
+ }
+ p->table.resize (m, 3);
+ p->table.attach (box, 1, 3, n, n + 1, FILL | EXPAND, SHRINK, 0, 0);
+ maybe_add_note (p, n + 1);
+}
+
Gtk::Widget&
ColorThemeManager::tip_widget()
{