]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Client/src/item_codo.cpp
definitivamente tengo que aprender a documentar en alguna de esas cosas raras que...
[z.facultad/75.42/plaqui.git] / Client / src / item_codo.cpp
index 76aefe1461b6a02587e56ea44d433db6c516a978..639e63566cc37df869f9d728a95e9d32470287b2 100644 (file)
@@ -1,25 +1,26 @@
 
 #include "item_codo.h"
 
 
 #include "item_codo.h"
 
-Codo::Codo(Glib::ustring _name, int orientacion):Item(_name)
+ViewCodo::ViewCodo(Glib::ustring _name, int orientacion):ViewItem(_name)
 {
        switch (orientacion) {
                case 0:
 {
        switch (orientacion) {
                case 0:
-                       image = Gdk::Pixbuf::create_from_file("codo_o.png");
+                       image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/codo_o.png");
                break;
                case 1:
                break;
                case 1:
-                       image = Gdk::Pixbuf::create_from_file("codo_n.png");
+                       image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/codo_n.png");
                break;
                case 2:
                break;
                case 2:
-                       image = Gdk::Pixbuf::create_from_file("codo_e.png");
+                       image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/codo_e.png");
                break;
                case 3:
                break;
                case 3:
-                       image = Gdk::Pixbuf::create_from_file("codo_s.png");
+                       image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/codo_s.png");
        }
        }
-       set_size_request(image->get_width(), image->get_height());
+       image.show();
+       set_size_request();
 }
 
 }
 
-Codo::~Codo()
+ViewCodo::~ViewCodo()
 {
 }
 
 {
 }