Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 4, 2005, 2:32:54 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/gui/gui/orxonox_gui_exec.cc

    r4039 r4041  
    359359#endif /* HAVE_GTK2 */
    360360{
     361  Window::mainWindow->hide();
     362
     363#ifdef HAVE_GTK2
     364  gtk_widget_destroy(Window::mainWindow->widget);
     365#else
     366  quitOrxonox(widget, data);
     367#endif /* HAVE_GTK2 */
     368
     369  PRINT(3)("Starting Orxonox\n");
     370  system(progExecutable); //!< \todo fix this. should execute orxonox for real(coded not over the shell)
     371}
     372
     373/**
     374   \brief Starts ORXONOX.(not really implemented yet, but the function is there.\n
     375   \param widget the widget that executed the start command
     376   \param data additional data
     377
     378   This is a Signal and can be executed through Widget::signal_connect
     379*/
     380#ifdef HAVE_GTK2
     381int OrxonoxGuiExec::quitOrxonox(GtkWidget* widget, void* data)
     382#else /* HAVE_GTK2 */
     383int OrxonoxGuiExec::quitOrxonox(void* widget, void* data)
     384#endif /* HAVE_GTK2 */
     385{
    361386  OrxonoxGuiExec* exec =(OrxonoxGuiExec*)data;
    362387  if(exec->shouldsave())
    363388    exec->writeToFile(Window::mainWindow);
    364   PRINT(3)("Starting Orxonox\n");
    365   system(progExecutable); //!< \todo fix this. should execute orxonox for real(coded not over the shell)
     389#ifdef HAVE_GTK2
    366390  gtk_main_quit();
    367 }
    368 
    369 /**
    370    \brief Starts ORXONOX.(not really implemented yet, but the function is there.\n
    371    \param widget the widget that executed the start command
    372    \param data additional data
    373 
    374    This is a Signal and can be executed through Widget::signal_connect
    375 */
    376 #ifdef HAVE_GTK2
    377 int OrxonoxGuiExec::quitOrxonox(GtkWidget* widget, void* data)
    378 #else /* HAVE_GTK2 */
    379 int OrxonoxGuiExec::quitOrxonox(void* widget, void* data)
    380 #endif /* HAVE_GTK2 */
    381 {
    382   OrxonoxGuiExec* exec =(OrxonoxGuiExec*)data;
    383   PRINT(3)( "Quitting Orxonox %p\n", exec);
    384   if(exec->shouldsave())
    385     exec->writeToFile(Window::mainWindow);
    386   gtk_main_quit();
    387 }
     391#endif /* HAVE_GTK2 */
     392}
Note: See TracChangeset for help on using the changeset viewer.