]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/pump.cpp
es precario pero se tiran los cablecitos, iupi
[z.facultad/75.42/plaqui.git] / Constructor / pump.cpp
index b26cda1b73160586b5d102f33d840c0e4959b99d..664b55d094a712e825b2da5a5b0ec4b39cf58836 100644 (file)
@@ -27,8 +27,18 @@ Pump::~Pump()
 
 bool Pump::on_button_press_event(GdkEventButton *event)
 {
-       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1))
+       GdkEventExpose e;
+       t_line tmp_line;
+       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1)) {
                combo_entry->set_text(name);
+               if (CItem::logic_connect) {
+                       tmp_line.logic =  workplace->get_logic_item(CItem::quien);
+                       tmp_line.store = this;
+                       workplace->lista_lineas.push_back(tmp_line);
+                       workplace->on_expose_event(&e);
+               }
+               CItem::logic_connect = false;   
+       }
        
        if ((event->type == GDK_BUTTON_PRESS) && ( event->button ==2)){
                image = null;