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