]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/pumpptywnd.cpp
para que lo vean
[z.facultad/75.42/plaqui.git] / Constructor / pumpptywnd.cpp
index d4510f348e5783af3f371ca4353557f0388dfe44..cc5adba40d8bcb65fd280d5abc02f79b4664095f 100644 (file)
@@ -6,6 +6,7 @@ PumpPtyWnd::PumpPtyWnd(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade:
        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);
@@ -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();
 }