// XXX Esto no deberia ser necesario! en todo caso devolves false en
// vez de true para que siga llamando a los otros handlers :)
//Gtk::DrawingArea::on_expose_event(event);
+ if (logic_connect) {
+ draw_connectors();
+ }
return true;
}
void CItem::draw_connectors()
{
- GdkEventExpose event;
if ( in_x != -1 ) {
- CItem::on_expose_event(&event);
Glib::RefPtr<Gdk::Window> window = get_window();
gc->set_foreground(red);
gc->set_foreground(blue);
gc->set_background(blue);
window->draw_rectangle(gc, 1, out_x-5-x, out_y-y-10, 10, 10);
+ queue_draw();
}
}
+
std::list<CItem *>::iterator j = listaItems->begin();
while ( j != listaItems->end() ) {
(*j)->update_logic_position();
- (*j)->draw_connectors();
j++;
}
}