X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/69f9b2a4a210cf2933c2da844183a199ba7ff5da..6d0ef35c9140efe280cd02385434f98acb4bdf80:/Constructor/codo.cpp?ds=sidebyside diff --git a/Constructor/codo.cpp b/Constructor/codo.cpp index a7f1502..6870e2d 100644 --- a/Constructor/codo.cpp +++ b/Constructor/codo.cpp @@ -8,7 +8,7 @@ Codo::Codo() imageO = Gdk::Pixbuf::create_from_file("codo_o.png"); null = Gdk::Pixbuf::create_from_file("null.png"); imgActual = 0; - image = imageN; + image = imageO; set_size_request(image->get_width(), image->get_height()); } @@ -19,7 +19,7 @@ Codo::~Codo() bool Codo::on_button_press_event(GdkEventButton *event) { if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 3)){ - image = null; //como hago para actualizar????? + image = null; 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); imgActual++; switch (imgActual) {