Changeset 3291 in orxonox.OLD for orxonox/branches/updater/src
- Timestamp:
- Dec 26, 2004, 4:44:27 PM (20 years ago)
- Location:
- orxonox/branches/updater/src/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc
r3290 r3291 116 116 //! \todo not hiding widget, deleting. 117 117 // this->hide(); 118 // delete this->widget; 118 119 } 119 120 … … 430 431 PRINTF(3)("deleting the Window.\n"); 431 432 433 this->hide(); 432 434 static_cast<Container*>(this)->destroy(); 433 435 -
orxonox/branches/updater/src/gui/orxonox_gui_update.cc
r3288 r3291 142 142 updateDataBegin = new Button ("begin."); 143 143 dataInfo->stateButton = updateDataBegin; 144 #ifdef HAVE_GTK2 144 145 dataInfo->buttonSignal = updateDataBegin->connectSignal ("button_press_event", dataInfo, updateDataFunc); 146 #endif /* HAVE_GTK2 */ 145 147 updateDataBox->fill(updateDataBegin); 146 148 … … 336 338 curl_easy_setopt(localCurl, CURLOPT_WRITEFUNCTION, curlWriteFunc); 337 339 curl_easy_setopt(localCurl, CURLOPT_READFUNCTION, curlReadFunc); 338 curl_easy_setopt(localCurl, CURLOPT_NOPROGRESS, TRUE);340 curl_easy_setopt(localCurl, CURLOPT_NOPROGRESS, true); 339 341 340 342 curl_easy_perform(localCurl); … … 379 381 curl_easy_setopt(curlHandle, CURLOPT_WRITEFUNCTION, curlWriteFunc); 380 382 curl_easy_setopt(curlHandle, CURLOPT_READFUNCTION, curlReadFunc); 381 curl_easy_setopt(curlHandle, CURLOPT_NOPROGRESS, FALSE);383 curl_easy_setopt(curlHandle, CURLOPT_NOPROGRESS, false); 382 384 curl_easy_setopt(curlHandle, CURLOPT_PROGRESSFUNCTION, curlProgressFunc); 383 385 curl_easy_setopt(curlHandle, CURLOPT_PROGRESSDATA, info->bar); … … 387 389 pthread_join(*downloadThreadFinishID, NULL); 388 390 391 #ifdef HAVE_GTK2 389 392 info->stateButton->disconnectSignal(info->buttonSignal); 390 393 info->buttonSignal = info->stateButton->connectSignal("button_press_event", info, cancelDownload); 394 #endif /* HAVE_GTK2 */ 391 395 #ifdef HAVE_PTHREAD_H 392 396 info->stateButton->setTitle("cancel"); … … 436 440 #ifdef HAVE_PTHREAD_H 437 441 pthread_join (*downloadThreadID, NULL); 442 #ifdef HAVE_GTK2 438 443 gdk_threads_enter(); 444 #endif /* HAVE_GTK2 */ 439 445 #endif /* HAVE_PTHREAD_H */ 440 446 if (curlHandle) … … 448 454 // else 449 455 // info->stateButton->setTitle("done"); 456 #ifdef HAVE_GTK2 450 457 info->stateButton->disconnectSignal(info->buttonSignal); 451 458 info->buttonSignal = info->stateButton->connectSignal("button_press_event", info, updateDataFunc); 459 #endif /* HAVE_GTK2 */ 452 460 isDownloading = false; 453 461 #ifdef HAVE_PTHREAD_H 462 #ifdef HAVE_GTK2 454 463 gdk_threads_leave(); 464 #endif /* HAVE_GTK2 */ 455 465 #endif /* HAVE_PTHREAD_H */ 456 466
Note: See TracChangeset
for help on using the changeset viewer.