Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 24, 2004, 1:15:38 PM (21 years ago)
Author:
bensch
Message:

orxonox/branches/updater: now the Data-bar downloads something, and the Progress is displayed. (not very nice, but it works).

NOT THREAD SAVE <<

File:
1 edited

Legend:

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

    r3259 r3263  
    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 */
    4954  gtk_init (&argc, &argv);
    5055  gtk_rc_parse( "rc" );
     
    5661bool mainloopGTK(void)
    5762{
     63  gdk_threads_enter();
     64  PRINTF(1)("test\n");
    5865  gtk_main();
     66  gdk_threads_leave();
    5967}
    6068#endif /* HAVE_GTK2 */
     
    529537  this->init();
    530538}
     539
    531540/**
    532541   \brief Creates a new EventBox with name title
     
    12041213  gtk_progress_set_value(GTK_PROGRESS(widget), this->progress*100.0/this->totalSize);
    12051214#endif /* HAVE_GTK2 */
     1215  PRINTF(3)("Progress: %f\n", progress*100.0/totalSize);
     1216
    12061217}
    12071218
Note: See TracChangeset for help on using the changeset viewer.