Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 27, 2004, 4:14:47 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/updater: implemented a new SignalHandler, signals for starting and quiting the Gui are now located in OrxonoxGuiExec.
Now thinking about a way to pass options to Orxonox (so the GUI really makes sense)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc

    r3299 r3300  
    3434// temporarily.
    3535#include "orxonox_gui_flags.h"
    36 #include "orxonox_gui_exec.h"
    3736extern Window* orxonoxGUI;
    3837extern OrxonoxGuiFlags* flags;
    39 extern OrxonoxGuiExec* exec;
    4038
    4139#ifdef HAVE_GTK2
     
    306304   \brief Connect a signal with additionally passing a whole external Object
    307305*/
     306gulong 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*/
    308314gulong Widget::connectSignal (char* event, void* extObj, gint (*signal)(GtkWidget*, GdkEventKey*, void *))
    309315{
     
    615621}
    616622
    617 /**
    618  * Quits the orxonox_GUI.
    619  * This can be called as a Signal and is therefor static
    620  \param widget The widget that called this function
    621  \param event the event that happened to execute this function
    622  \param data some data passed with the Signal
    623  */
    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 }
    632623#endif /* HAVE_GTK2 */
    633624
Note: See TracChangeset for help on using the changeset viewer.