Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 24, 2004, 4:25:41 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/updater: deleted threading again. I have found a different Way
Now I am redrawing the GUI every time a ProgressBar is changed.

File:
1 edited

Legend:

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

    r3263 r3268  
    4747bool initGTK(int argc, char *argv[])
    4848{
    49 #ifdef HAVE_GTHREAD
    50   PRINTF(3)("Initializing the ThreadSystem of the GUI\n");
    51   g_thread_init(NULL);
    52   gdk_threads_init();
    53 #endif /* HAVE_GTHREAD */
    5449  gtk_init (&argc, &argv);
    5550  gtk_rc_parse( "rc" );
     
    6156bool mainloopGTK(void)
    6257{
    63   gdk_threads_enter();
    6458  PRINTF(1)("test\n");
    6559  gtk_main();
    66   gdk_threads_leave();
    6760}
    6861#endif /* HAVE_GTK2 */
     
    12101203    this->progress = this->totalSize;
    12111204
     1205
    12121206#ifdef HAVE_GTK2
    12131207  gtk_progress_set_value(GTK_PROGRESS(widget), this->progress*100.0/this->totalSize);
     1208  while (gtk_events_pending())
     1209    gtk_main_iteration_do(TRUE);
    12141210#endif /* HAVE_GTK2 */
    12151211  PRINTF(3)("Progress: %f\n", progress*100.0/totalSize);
Note: See TracChangeset for help on using the changeset viewer.