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);
+ WorkPlace::pointed = ID;
+ }
if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 2)){
image = null;
menu_popup.popup(event->button, event->time);
return true; //It has been handled.
}
+ workplace->queue_draw();
return true;
}
void And::on_menu_popup_rotar()