#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:
- image = Gdk::Pixbuf::create_from_file("codo_o.png");
+ image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/codo_o.png");
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:
- image = Gdk::Pixbuf::create_from_file("codo_e.png");
+ image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/codo_e.png");
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()
{
}