5 imageN = Gdk::Pixbuf::create_from_file("canio_n.png");
6 imageS = Gdk::Pixbuf::create_from_file("canio_s.png");
7 null = Gdk::Pixbuf::create_from_file("null.png");
10 set_size_request(image->get_width(), image->get_height());
12 Glib::RefPtr<Gnome::Glade::Xml> ref;
14 ref = Gnome::Glade::Xml::create("constructor.glade", "conduct_pty_wnd");
16 catch(const Gnome::Glade::XmlError &ex) {
17 std::cerr << ex.what() << std::endl;
19 //tengo que crear una clase para esta ventana..!!!
20 ref->get_widget_derived("conduct_pty_wnd",property_wnd);
27 bool Conduct::on_button_press_event(GdkEventButton *event)
30 if ((event->type == GDK_BUTTON_PRESS) && ( event->button ==2)){
32 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);
42 get_size_request(w, h);
43 set_size_request(h, w);
44 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);
46 if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 3)){
47 menu_popup.popup(event->button, event->time);
48 return true; //It has been handled.
51 if ((event->type == GDK_2BUTTON_PRESS) && (event->button ==1)){
57 void Conduct::on_menu_popup_rotar()
60 event.type = GDK_BUTTON_PRESS;
62 Conduct::on_button_press_event(&event);
65 void Conduct::on_menu_popup_propiedades()
68 event.type = GDK_2BUTTON_PRESS;
70 Conduct::on_button_press_event(&event);