imgActual = 0;
image = imageN;
set_size_request(image->get_width(), image->get_height());
+
+ Glib::RefPtr<Gnome::Glade::Xml> ref;
+ try {
+ ref = Gnome::Glade::Xml::create("constructor.glade", "conduct_pty_wnd");
+ }
+ catch(const Gnome::Glade::XmlError &ex) {
+ std::cerr << ex.what() << std::endl;
+ }
+ //tengo que crear una clase para esta ventana..!!!
+ ref->get_widget_derived("conduct_pty_wnd",property_wnd);
}
Conduct::~Conduct()
menu_popup.popup(event->button, event->time);
return true; //It has been handled.
}
+
+ if ((event->type == GDK_2BUTTON_PRESS) && (event->button ==1)){
+ if( property_wnd->is_open() == false ){
+ property_wnd->show();
+ property_wnd->set_open (true);
+ }
+ }
return true;
}
event.button = 2;
Conduct::on_button_press_event(&event);
}
+
+void Conduct::on_menu_popup_propiedades()
+{
+ GdkEventButton event;
+ event.type = GDK_2BUTTON_PRESS;
+ event.button = 1;
+ Conduct::on_button_press_event(&event);
+}