Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3291 in orxonox.OLD


Ignore:
Timestamp:
Dec 26, 2004, 4:44:27 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/updater: compiles without GTK again

Location:
orxonox/branches/updater/src/gui
Files:
2 edited

Legend:

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

    r3290 r3291  
    116116  //!  \todo not hiding widget, deleting.
    117117  //  this->hide();
     118  //  delete this->widget;
    118119}
    119120
     
    430431    PRINTF(3)("deleting the Window.\n");
    431432
     433  this->hide();
    432434  static_cast<Container*>(this)->destroy();
    433435 
  • orxonox/branches/updater/src/gui/orxonox_gui_update.cc

    r3288 r3291  
    142142  updateDataBegin = new Button ("begin.");
    143143  dataInfo->stateButton = updateDataBegin;
     144#ifdef HAVE_GTK2
    144145  dataInfo->buttonSignal = updateDataBegin->connectSignal ("button_press_event", dataInfo, updateDataFunc);
     146#endif /* HAVE_GTK2 */
    145147  updateDataBox->fill(updateDataBegin);
    146148
     
    336338      curl_easy_setopt(localCurl, CURLOPT_WRITEFUNCTION, curlWriteFunc);
    337339      curl_easy_setopt(localCurl, CURLOPT_READFUNCTION, curlReadFunc);
    338       curl_easy_setopt(localCurl, CURLOPT_NOPROGRESS, TRUE);
     340      curl_easy_setopt(localCurl, CURLOPT_NOPROGRESS, true);
    339341     
    340342      curl_easy_perform(localCurl);
     
    379381      curl_easy_setopt(curlHandle, CURLOPT_WRITEFUNCTION, curlWriteFunc);
    380382      curl_easy_setopt(curlHandle, CURLOPT_READFUNCTION, curlReadFunc);
    381       curl_easy_setopt(curlHandle, CURLOPT_NOPROGRESS, FALSE);
     383      curl_easy_setopt(curlHandle, CURLOPT_NOPROGRESS, false);
    382384      curl_easy_setopt(curlHandle, CURLOPT_PROGRESSFUNCTION, curlProgressFunc);
    383385      curl_easy_setopt(curlHandle, CURLOPT_PROGRESSDATA, info->bar);
     
    387389          pthread_join(*downloadThreadFinishID, NULL);
    388390
     391#ifdef HAVE_GTK2
    389392          info->stateButton->disconnectSignal(info->buttonSignal);
    390393          info->buttonSignal = info->stateButton->connectSignal("button_press_event", info, cancelDownload);
     394#endif /* HAVE_GTK2 */
    391395#ifdef HAVE_PTHREAD_H
    392396          info->stateButton->setTitle("cancel");
     
    436440#ifdef HAVE_PTHREAD_H
    437441  pthread_join (*downloadThreadID, NULL);
     442#ifdef HAVE_GTK2
    438443  gdk_threads_enter();
     444#endif /* HAVE_GTK2 */
    439445#endif /* HAVE_PTHREAD_H */
    440446  if (curlHandle)
     
    448454  //  else
    449455  //    info->stateButton->setTitle("done");
     456#ifdef HAVE_GTK2
    450457  info->stateButton->disconnectSignal(info->buttonSignal);
    451458  info->buttonSignal = info->stateButton->connectSignal("button_press_event", info, updateDataFunc);
     459#endif /* HAVE_GTK2 */
    452460  isDownloading = false;
    453461#ifdef HAVE_PTHREAD_H
     462#ifdef HAVE_GTK2
    454463  gdk_threads_leave();
     464#endif /* HAVE_GTK2 */
    455465#endif /* HAVE_PTHREAD_H */
    456466
Note: See TracChangeset for help on using the changeset viewer.