]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/drain.cpp
Se agrega una pequeña mejora al dibujo de las lineas. Tengo pensado mejorarlas
[z.facultad/75.42/plaqui.git] / Constructor / src / drain.cpp
index 9eefcefefbf280801c5328e0542f6cfc818e229e..202c6f3062cdb03955f5d2ffa47757db62c38bad 100644 (file)
@@ -2,6 +2,7 @@
 
 Drain::Drain(int orientacion)
 {
+       in_x = -1;
        imageE = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/drain_e.png");
        imageO = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/drain_o.png");
        imageN = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/drain_n.png");
@@ -40,8 +41,10 @@ Drain::~Drain()
 
 bool Drain::on_button_press_event(GdkEventButton *event)
 {
-       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1))
+       if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1)) {
                combo_entry->set_text(name);
+               WorkPlace::pointed = ID;
+       }
        
        if ((event->type == GDK_BUTTON_PRESS) && ( event->button ==2)){
                image = null;