X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/46de693afcd74154ed8b4f6bf6e81221e18a0f97..d11e7ce4ce8230e83b8c79c41b03cd797d475335:/tests/GUI/item.cc?ds=sidebyside diff --git a/tests/GUI/item.cc b/tests/GUI/item.cc index 25ca9f3..83a1721 100644 --- a/tests/GUI/item.cc +++ b/tests/GUI/item.cc @@ -5,10 +5,8 @@ CItem::CItem(const char *filename):Gtk::DrawingArea() { - std::cout << "CItem::CItem() -> Usando " << filename << std::endl; image = Gdk::Pixbuf::create_from_file(filename); - std::cout << "CItem::CItem() -> w = " << image->get_width() << " h = " << image->get_height() << std::endl; set_size_request(image->get_width(), image->get_height()); } @@ -18,10 +16,13 @@ CItem::~CItem() bool CItem::on_expose_event(GdkEventExpose* event) { - image->render_to_drawable(get_window(), get_style()->get_black_gc(), \ - 0, 0, 0, 0, image->get_width(), image->get_height(), Gdk::RGB_DITHER_NONE, 0, 0); + image->render_to_drawable(get_window(), get_style()->get_black_gc(), + 0, 0, 0, 0, image->get_width(), + image->get_height(), Gdk::RGB_DITHER_NONE, 0, 0); - Gtk::DrawingArea::on_expose_event(event); + // 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); return true; }