Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3303 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Dec 28, 2004, 1:21:32 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/updater: small fix for compiling without gtk

Location:
orxonox/branches/updater/src/gui
Files:
2 edited

Legend:

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

    r3301 r3303  
    119119  // case start-with-gui.
    120120  if (!access(exec->getConfigFile(), F_OK) && static_cast<Option*>(orxonoxGUI->findWidgetByName("Always Show this Menu", 0))->value == 0)
    121     OrxonoxGuiExec::startOrxonox(NULL, NULL);
     121    OrxonoxGuiExec::startOrxonox(NULL, exec);
    122122  else
     123#ifdef HAVE_GTK2
    123124    {
    124 #ifdef HAVE_GTK2
    125   mainloopGTK();
     125      mainloopGTK();
     126    }
    126127#else /* HAVE_GTK2 */
    127   PRINT(0)(" Listing all the Orxonox Options: \n");
    128   PRINT(0)("  #############################\n");
    129   orxonoxGUI->walkThrough(orxonoxGUI->listOptions, 0);
     128  {
     129    PRINT(0)(" Listing all the Orxonox Options: \n");
     130    PRINT(0)("  #############################\n");
     131    orxonoxGUI->walkThrough(orxonoxGUI->listOptions, 0);
     132   
     133    PRINT(0)("\nDo you want me to save the the above values now? [Yn] ");
     134    char c = getchar();
     135    if ((c == 'y' || c == 'Y' || c== 10) && exec->shouldsave())
     136      exec->writeToFile (Window::mainWindow);
     137    OrxonoxGuiExec::startOrxonox(NULL, exec);
     138  }
    130139
    131   PRINT(0)("\nDo you want me to save the the above values now? [Yn] ");
    132   char c = getchar();
    133   if ((c == 'y' || c == 'Y' || c== 10) && exec->shouldsave())
    134     exec->writeToFile (Window::mainWindow);
    135   OrxonoxGuiExec::startOrxonox(NULL, exec);
    136140#endif /* HAVE_GTK2 */
    137     }
    138141}
  • orxonox/branches/updater/src/gui/orxonox_gui_update.cc

    r3298 r3303  
    384384      if (!isDownloading)
    385385        {
     386#ifdef HAVE_PTHREAD_H     
    386387          pthread_join(*downloadThreadFinishID, NULL);
    387 
     388#endif /* HAVE_PTHREAD_H */
    388389#ifdef HAVE_GTK2
    389390          info->stateButton->disconnectSignal(info->buttonSignal);
Note: See TracChangeset for help on using the changeset viewer.