imageE = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/bomba_e.png");
imageO = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/bomba_o.png");
null = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/bomba_null.png");
imageE = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/bomba_e.png");
imageO = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/bomba_o.png");
null = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/bomba_null.png");
if (CItem::logic_connect && CItem::gate_id != -1) {
if ( detect_click_position((int)event->x, (int)event->y) == IN) {
tmp_line.logic_id = workplace->get_logic_item(CItem::gate_id)->get_id();
if (CItem::logic_connect && CItem::gate_id != -1) {
if ( detect_click_position((int)event->x, (int)event->y) == IN) {
tmp_line.logic_id = workplace->get_logic_item(CItem::gate_id)->get_id();