bool Cistern::on_button_press_event(GdkEventButton *event)
{
GdkEventExpose e;
- CItem *logic_item;
t_line tmp_line;
if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1)) {
combo_entry->set_text(name);
if (CItem::logic_connect) {
- std::cout<<workplace<<std::endl;
tmp_line.logic = workplace->get_logic_item(CItem::quien);
tmp_line.store = this;
workplace->lista_lineas.push_back(tmp_line);
workplace->drag_dest_set(listTargets);
workplace->signal_drag_data_received().connect( SigC::slot(*this, &Constructor::on_item_drop_drag_received) );
workplace->listaItems = &listaItems;
- workplace->listaItems = &lista_logic_Items;
+ workplace->lista_logic_Items = &lista_logic_Items;
logica = false;
}
std::list<CItem *>::iterator i = lista_logic_Items->begin();
while ( i != lista_logic_Items->end() ){
CItem *temp = *i;
- if ( temp->get_id() == _id )
+ if ( temp->get_id() == _id )
return temp;
i++;
}