]> git.llucax.com Git - z.facultad/75.42/plaqui.git/commitdiff
Bue, ahora se pueden girar los bichos y queda re bonito, pero que ni se les ocurra...
authorNicolás Dimov <ndimov@gmail.com>
Thu, 23 Oct 2003 18:39:45 +0000 (18:39 +0000)
committerNicolás Dimov <ndimov@gmail.com>
Thu, 23 Oct 2003 18:39:45 +0000 (18:39 +0000)
help me! ahora mientras escribo me doy cuenta que me olvide de agregar una cosa que habia sacado pero para el proximo commit lo arreglo.no es importante.

Constructor/canio.cpp
Constructor/codo.cpp
Constructor/constructor.cpp
Constructor/y.cpp

index 387ce3101e6ad36d248548e16d82576ca26b728f..47c1450d72f0fc332ba2709339be30b952b5b539 100644 (file)
@@ -16,7 +16,8 @@ Canio::~Canio()
 
 bool Canio::on_button_press_event(GdkEventButton *event)
 {
-       if (event->type == GDK_2BUTTON_PRESS){
+       int w, h;
+       if ((event->type == GDK_BUTTON_PRESS) && ( event->button ==3)){
                image = null;  //como hago para actualizar?????
                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++;
@@ -28,6 +29,8 @@ bool Canio::on_button_press_event(GdkEventButton *event)
                                imgActual = 0;
                                image = imageN;                 
                }
+               get_size_request(w, h);
+               set_size_request(h, w);         
                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);
        }
        return true;
index baa3aaa9cc3d1df21c951587129281075e3930e6..a7f1502c07ad3c2c4b68c8a8749f73d9ce38cc12 100644 (file)
@@ -18,7 +18,7 @@ Codo::~Codo()
 
 bool Codo::on_button_press_event(GdkEventButton *event)
 {
-       if (event->type == GDK_2BUTTON_PRESS){
+       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 3)){
                image = null;  //como hago para actualizar?????
                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++;
@@ -36,6 +36,7 @@ bool Codo::on_button_press_event(GdkEventButton *event)
                                imgActual = 0;
                                image = imageN;                 
                }
+               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);
        }
        return true;
index 094ff2378ecb4c8b52b6c5d4799860fecabb0aea..449e7c35c581de574bb88f0e4713391881a5144b 100644 (file)
@@ -128,7 +128,7 @@ void Constructor::on_item_drop_drag_received(const Glib::RefPtr<Gdk::DragContext
                // y pedirle su ícono para mostrar cono icono durante la operacion,
                // Esto va a permitir, que si un widget tiene una imagen rotara o algo
                // raro se vea el widget tal cual.
-               a->signal_drag_begin().connect(SigC::bind( SigC::slot(*this, &Constructor::on_item_drag_begin), a));
+               //a->signal_drag_begin().connect(SigC::bind( SigC::slot(*this, &Constructor::on_item_drag_begin), a));
                a->show();      
                listaItems.push_back(a);
   }
index 3d845823460b0b2c678cdbb72536a80fa94b5247..71e2367a91c19ad51b03c3a8dae24307a867b117 100644 (file)
@@ -18,7 +18,8 @@ Y::~Y()
 
 bool Y::on_button_press_event(GdkEventButton *event)
 {
-       if (event->type == GDK_2BUTTON_PRESS){
+       int w,h;
+       if ((event->type == GDK_BUTTON_PRESS) && (event->button == 3 )){
                image = null;  //como hago para actualizar?????
                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++;
@@ -36,6 +37,8 @@ bool Y::on_button_press_event(GdkEventButton *event)
                                imgActual = 0;
                                image = imageN;                 
                }
+               get_size_request(w, h);
+               set_size_request(h, w);         
                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);
        }
        return true;