From: Nicolás Dimov Date: Thu, 4 Dec 2003 05:10:28 +0000 (+0000) Subject: sobrecarga del on_delete_event X-Git-Tag: svn_import~22 X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/commitdiff_plain/8991f15558a6b0fbcfd588abe073f6f0537a7f8d?ds=sidebyside sobrecarga del on_delete_event --- diff --git a/Constructor/include/constructor.h b/Constructor/include/constructor.h index 3d371ea..bf6bc4e 100644 --- a/Constructor/include/constructor.h +++ b/Constructor/include/constructor.h @@ -95,7 +95,8 @@ class Constructor : public Gtk::Window { WorkPlace *workplace; bool logica; bool can_drop(CItem *, int , int); - + // Sobrecarga del evento cerrar + virtual bool on_delete_event(GdkEventAny *e); // /señales de control para los elementos de la ventana. virtual void on_btn_canio_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time); virtual void on_btn_y_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time); diff --git a/Constructor/src/constructor.cpp b/Constructor/src/constructor.cpp index cefdbdd..86e8842 100644 --- a/Constructor/src/constructor.cpp +++ b/Constructor/src/constructor.cpp @@ -229,7 +229,12 @@ void Constructor::on_main_menu_quit() else Gtk::Main::quit(); } - +bool Constructor::on_delete_event(GdkEventAny *e) +{ + std::cout<<"terminando constructor"<