btn_select_color->signal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_btn_select_color_clicked));
dlg_select_color_cancel->signal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_dlg_select_color_cancel_clicked));
dlg_select_color_ok->signal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_dlg_select_color_ok_clicked));
+ cistern = NULL;
+}
+
+void CisternPtyWnd::show()
+{
+ if (cistern != NULL) {
+ color_preview->modify_bg( Gtk::STATE_NORMAL , cistern->get_liquid_color() );
+ }
+ PropertyWnd::show();
}
CisternPtyWnd::~CisternPtyWnd()