- CItem::logic_connect = true;
- CItem::gate_id = ID;
- combo_entry->set_text(name);
- WorkPlace::pointed = ID;
+ if ( CItem::logic_connect ) {
+ if ( detect_click_position((int)event->x, (int)event->y ) == OUT && !out_connected) {
+ CItem::gate_id = ID;
+ WorkPlace::pointed = ID;
+ }
+ if ( detect_click_position((int)event->x, (int)event->y ) == IN ) {
+ CItem::gate_id = ID;
+ WorkPlace::pointed = ID;
+ }
+ }
+ list_pointed->push_back(name);
+ combo_entry->set_popdown_strings(*list_pointed);
+ combo_entry->get_entry()->set_text (name);