Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4042 in orxonox.OLD for orxonox/trunk/src/lib/gui


Ignore:
Timestamp:
May 4, 2005, 6:04:16 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: gui: minor niceness-patch

Location:
orxonox/trunk/src/lib/gui/gui
Files:
3 edited

Legend:

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

    r4041 r4042  
    6464  this->quit = new Button("Quit");
    6565#ifdef HAVE_GTK2
    66   this->quit->connectSignal("clicked", this, OrxonoxGuiExec::quitOrxonox);
    67   //  Window::mainWindow->connectSignal("remove", this, OrxonoxGuiExec::quitOrxonox);
    68   Window::mainWindow->connectSignal("destroy", this, OrxonoxGuiExec::quitOrxonox);
     66  this->quit->connectSignal("clicked", this, OrxonoxGuiExec::quitGui);
     67  //  Window::mainWindow->connectSignal("remove", this, OrxonoxGuiExec::quitGui);
     68  Window::mainWindow->connectSignal("destroy", this, OrxonoxGuiExec::quitGui);
    6969#endif /* HAVE_GTK2 */
    7070  this->execBox->fill(this->quit);
     
    364364  gtk_widget_destroy(Window::mainWindow->widget);
    365365#else
    366   quitOrxonox(widget, data);
     366  quitGui(widget, data);
    367367#endif /* HAVE_GTK2 */
    368368
     
    379379*/
    380380#ifdef HAVE_GTK2
    381 int OrxonoxGuiExec::quitOrxonox(GtkWidget* widget, void* data)
     381int OrxonoxGuiExec::quitGui(GtkWidget* widget, void* data)
    382382#else /* HAVE_GTK2 */
    383 int OrxonoxGuiExec::quitOrxonox(void* widget, void* data)
     383int OrxonoxGuiExec::quitGui(void* widget, void* data)
    384384#endif /* HAVE_GTK2 */
    385385{
     
    389389#ifdef HAVE_GTK2
    390390  gtk_main_quit();
    391 #endif /* HAVE_GTK2 */
    392 }
     391  while(gtk_events_pending()) gtk_main_iteration();
     392#endif /* HAVE_GTK2 */
     393}
  • orxonox/trunk/src/lib/gui/gui/orxonox_gui_exec.h

    r4026 r4042  
    5151#ifdef HAVE_GTK2
    5252  static int startOrxonox(GtkWidget *widget, void* data);
    53   static int quitOrxonox(GtkWidget *widget, void* data);
     53  static int quitGui(GtkWidget *widget, void* data);
    5454#else /* HAVE_GTK2 */
    5555  static int startOrxonox(void* widget, void* data);
    56   static int quitOrxonox(void* widget, void* data);
     56  static int quitGui(void* widget, void* data);
    5757#endif /* HAVE_GTK2 */
    5858};
  • orxonox/trunk/src/lib/gui/gui/orxonox_gui_update.cc

    r4037 r4042  
    487487  pthread_cancel(*downloadThreadID);
    488488#else
    489   PRINTF(2)("Cannot cancle the Downloading process until after this File, because no threading was enabled");
     489  PRINTF(2)("Cannot cancle the Downloading process until after this File, because no threading was enabled\n");
    490490#endif /* HAVE_PTHREAD_H*/
    491491}
Note: See TracChangeset for help on using the changeset viewer.