~ubuntu-branches/ubuntu/jaunty/moon/jaunty

« back to all changes in this revision

Viewing changes to src/pipeline-ui.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-03-06 10:09:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090306100949-pgxjxjqltaxi12rz
Tags: 1.0.1-0ubuntu1
New upstream release (LP: #338665)

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
 
240
240
        CreateDownloader ();
241
241
        
 
242
        if (dl == NULL) {
 
243
                Close ();
 
244
                return;
 
245
        }
 
246
 
242
247
        switch (state) {
243
248
        case 0: // initial, waiting for user input
244
249
                SetHeader ("Downloading license agreement...");
286
291
{
287
292
        if (dl == NULL) {
288
293
                dl = surface->CreateDownloader ();
289
 
                dl->AddHandler (Downloader::DownloadProgressChangedEvent, DownloadProgressChangedHandler, this);
290
 
                dl->AddHandler (Downloader::DownloadFailedEvent, DownloadFailedHandler, this);
291
 
                dl->AddHandler (Downloader::CompletedEvent, DownloadCompletedHandler, this);
 
294
                if (dl != NULL) {
 
295
                        dl->AddHandler (Downloader::DownloadProgressChangedEvent, DownloadProgressChangedHandler, this);
 
296
                        dl->AddHandler (Downloader::DownloadFailedEvent, DownloadFailedHandler, this);
 
297
                        dl->AddHandler (Downloader::CompletedEvent, DownloadCompletedHandler, this);
 
298
                }
292
299
        }
293
300
}
294
301