]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/codo.cpp
Me vuelvo loco cd Constructor/cd Constructor/ pero hubo una regresion, para rotar...
[z.facultad/75.42/plaqui.git] / Constructor / codo.cpp
index 6870e2d2c3ef6bf7c296debbf6fff5b935012329..75c9d26b5da2885419d9b851eb227ad063ff7cf9 100644 (file)
@@ -18,7 +18,7 @@ Codo::~Codo()
 
 bool Codo::on_button_press_event(GdkEventButton *event)
 {
-       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 3)){
+       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 2)){
                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++;
@@ -39,5 +39,9 @@ bool Codo::on_button_press_event(GdkEventButton *event)
                set_size_request(image->get_width(),image->get_height());
                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);
        }
+       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 3)){
+               menu_popup.popup(event->button, event->time);
+                return true; //It has been handled.
+       }
        return true;
 }