X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/d53ded00c10a30a17c7f0aad90acca933a7f4db9..b0a202776ab7634c206b495b42e20cfe6492e035:/Constructor/pumpptywnd.cpp?ds=sidebyside diff --git a/Constructor/pumpptywnd.cpp b/Constructor/pumpptywnd.cpp index d4510f3..cc5adba 100644 --- a/Constructor/pumpptywnd.cpp +++ b/Constructor/pumpptywnd.cpp @@ -6,6 +6,7 @@ PumpPtyWnd::PumpPtyWnd(BaseObjectType* cobject, const Glib::RefPtrget_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 ref = Gnome::Glade::Xml::create("constructor.glade", "color_select_dlg"); ref->get_widget("color_select_dlg",color_select_dlg); @@ -47,7 +48,8 @@ void PumpPtyWnd::on_dlg_select_color_cancel_clicked() } 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(); }