Changeset 3300 in orxonox.OLD for orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc
- Timestamp:
- Dec 27, 2004, 4:14:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc
r3299 r3300 34 34 // temporarily. 35 35 #include "orxonox_gui_flags.h" 36 #include "orxonox_gui_exec.h"37 36 extern Window* orxonoxGUI; 38 37 extern OrxonoxGuiFlags* flags; 39 extern OrxonoxGuiExec* exec;40 38 41 39 #ifdef HAVE_GTK2 … … 306 304 \brief Connect a signal with additionally passing a whole external Object 307 305 */ 306 gulong Widget::connectSignal (char* event, void* extObj, gint (*signal)(GtkWidget*, void *)) 307 { 308 return g_signal_connect (G_OBJECT (this->widget), event, G_CALLBACK (signal), extObj); 309 } 310 311 /** 312 \brief Connect a signal with additionally passing a whole external Object 313 */ 308 314 gulong Widget::connectSignal (char* event, void* extObj, gint (*signal)(GtkWidget*, GdkEventKey*, void *)) 309 315 { … … 615 621 } 616 622 617 /**618 * Quits the orxonox_GUI.619 * This can be called as a Signal and is therefor static620 \param widget The widget that called this function621 \param event the event that happened to execute this function622 \param data some data passed with the Signal623 */624 gint Window::orxonox_gui_quit (GtkWidget *widget, GdkEvent *event, gpointer data)625 {626 if (exec->shouldsave())627 exec->writeToFile (Window::mainWindow);628 629 gtk_main_quit();630 return FALSE;631 }632 623 #endif /* HAVE_GTK2 */ 633 624
Note: See TracChangeset
for help on using the changeset viewer.