X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/b7745587e67846353ff872a3bc3b3ea5a84706ac..b4454acb67d6f1c782c378d7ce734e93858e58ff:/Constructor/union.cpp diff --git a/Constructor/union.cpp b/Constructor/union.cpp index 427c672..f1bee2f 100644 --- a/Constructor/union.cpp +++ b/Constructor/union.cpp @@ -37,8 +37,7 @@ bool Union::on_button_press_event(GdkEventButton *event) imgActual = 0; image = imageN; } - get_size_request(w, h); - set_size_request(h, w); + 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)){ @@ -55,7 +54,3 @@ void Union::on_menu_popup_rotar() event.button = 2; Union::on_button_press_event(&event); } - -void Union::on_menu_popup_eliminar() -{ -}