]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/cisternptywnd.cpp
Se corrige un bug.
[z.facultad/75.42/plaqui.git] / Constructor / cisternptywnd.cpp
index e5ca32d1f744359fc1df70aec548bb906970dbf1..12617e2da23d283bde1e39ea956f3e106f768226 100644 (file)
@@ -7,6 +7,8 @@ CisternPtyWnd::CisternPtyWnd(BaseObjectType* cobject, const Glib::RefPtr<Gnome::
        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("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);
        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);
@@ -49,5 +51,6 @@ void CisternPtyWnd::on_dlg_select_color_cancel_clicked()
 void CisternPtyWnd::on_dlg_select_color_ok_clicked()
 {
        cistern->set_liquid_color( color_select_dlg->get_colorsel()->get_current_color() );
 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();
 }
        color_select_dlg->hide();
 }