Changeset 3271 in orxonox.OLD for orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc
- Timestamp:
- Dec 24, 2004, 6:29:38 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc
r3268 r3271 47 47 bool initGTK(int argc, char *argv[]) 48 48 { 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 */ 49 54 gtk_init (&argc, &argv); 50 55 gtk_rc_parse( "rc" ); … … 56 61 bool mainloopGTK(void) 57 62 { 58 PRINTF(1)("test\n");63 gdk_threads_enter(); 59 64 gtk_main(); 65 gdk_threads_leave(); 60 66 } 61 67 #endif /* HAVE_GTK2 */ … … 1203 1209 this->progress = this->totalSize; 1204 1210 1205 1206 1211 #ifdef HAVE_GTK2 1207 1212 gtk_progress_set_value(GTK_PROGRESS(widget), this->progress*100.0/this->totalSize); 1208 while (gtk_events_pending())1209 gtk_main_iteration_do(TRUE);1210 1213 #endif /* HAVE_GTK2 */ 1211 1214 PRINTF(3)("Progress: %f\n", progress*100.0/totalSize);
Note: See TracChangeset
for help on using the changeset viewer.