]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/and.cpp
ahora se corrige BIEN el mismo bug
[z.facultad/75.42/plaqui.git] / Constructor / src / and.cpp
index 9ee2867a39b443a0f227a3ed0ae0eb049f06c3ba..c73b062c8d804df6efdc69f9b7e9d943a909302e 100644 (file)
@@ -20,8 +20,12 @@ And::~And()
 
 bool And::on_button_press_event(GdkEventButton *event)
 {
 
 bool And::on_button_press_event(GdkEventButton *event)
 {
-       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1))
+       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1)) {
+               if (CItem::logic_connect)
+                       CItem::gate_id = ID;
                combo_entry->set_text(name);
                combo_entry->set_text(name);
+               WorkPlace::pointed = ID;
+       }
        
        if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 2)){
                image = null;   
        
        if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 2)){
                image = null;   
@@ -48,6 +52,7 @@ bool And::on_button_press_event(GdkEventButton *event)
                menu_popup.popup(event->button, event->time);
                 return true; //It has been handled.
        }
                menu_popup.popup(event->button, event->time);
                 return true; //It has been handled.
        }
+       workplace->queue_draw();
        return true;
 }
 void And::on_menu_popup_rotar()
        return true;
 }
 void And::on_menu_popup_rotar()