refGlade->get_widget("btn_select_color",btn_select_color);
refGlade->get_widget("spin_fluid",spin_fluid);
refGlade->get_widget("txt_pump_name",txt_pump_name);
+ 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);
}
void PumpPtyWnd::on_dlg_select_color_ok_clicked()
-{
+{
pump->set_liquid_color( color_select_dlg->get_colorsel()->get_current_color() );
+ color_preview->modify_bg( Gtk::STATE_NORMAL , pump->get_liquid_color() );
color_select_dlg->hide();
}