refGlade->get_widget("spin_inicial", spin_inicial);
refGlade->get_widget("txt_cistern_name", txt_cistern_name);
refGlade->get_widget("btn_select_color", btn_select_color);
+ refGlade->get_widget("color_preview",color_preview);
+
Glib::RefPtr<Gnome::Glade::Xml> ref = Gnome::Glade::Xml::create("constructor.glade", "color_select_dlg");
ref->get_widget("color_select_dlg",color_select_dlg);
ref->get_widget("dlg_select_color_cancel",dlg_select_color_cancel);
void CisternPtyWnd::on_dlg_select_color_ok_clicked()
{
cistern->set_liquid_color( color_select_dlg->get_colorsel()->get_current_color() );
+ color_preview->modify_bg( Gtk::STATE_NORMAL , cistern->get_liquid_color() );
color_select_dlg->hide();
}