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 ref->get_widget_derived("conduct_pty_wnd",property_wnd);
26 bool Conduct::on_button_press_event(GdkEventButton *event)
29 if ((event->type == GDK_BUTTON_PRESS) && ( event->button ==2)){
31 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);
41 get_size_request(w, h);
42 set_size_request(h, w);
43 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);
45 if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 3)){
46 menu_popup.popup(event->button, event->time);
47 return true; //It has been handled.
50 if ((event->type == GDK_2BUTTON_PRESS) && (event->button ==1)){
56 void Conduct::on_menu_popup_rotar()
59 event.type = GDK_BUTTON_PRESS;
61 Conduct::on_button_press_event(&event);
64 void Conduct::on_menu_popup_propiedades()
67 event.type = GDK_2BUTTON_PRESS;
69 Conduct::on_button_press_event(&event);