5 imageN = Gdk::Pixbuf::create_from_file("canio_n.png");
6 imageS = Gdk::Pixbuf::create_from_file("canio_s.png");
7 null = Gdk::Pixbuf::create_from_file("null.png");
10 set_size_request(image->get_width(), image->get_height());
17 bool Canio::on_button_press_event(GdkEventButton *event)
19 if (event->type == GDK_2BUTTON_PRESS){
20 image = null; //como hago para actualizar?????
21 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);
31 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);