X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/667418327423ba116d24751926a95a2f1235849c..3b6a42222383cfd5f7ef0d6116077fb2fecb28d6:/Constructor/src/not.cpp diff --git a/Constructor/src/not.cpp b/Constructor/src/not.cpp index b006f5e..dcf95c2 100644 --- a/Constructor/src/not.cpp +++ b/Constructor/src/not.cpp @@ -20,8 +20,12 @@ Not::~Not() bool Not::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); + WorkPlace::pointed = ID; + } if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 2)){ image = null; @@ -48,6 +52,7 @@ bool Not::on_button_press_event(GdkEventButton *event) menu_popup.popup(event->button, event->time); return true; //It has been handled. } + workplace->queue_draw(); return true; } void Not::on_menu_popup_rotar()