~ubuntu-branches/ubuntu/dapper/synaptic/dapper

« back to all changes in this revision

Viewing changes to gtk/rgdebinstallprogress.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-03-29 14:33:19 UTC
  • Revision ID: james.westby@ubuntu.com-20060329143319-dxpnxoinn7ztv3k2
Tags: 0.57.8ubuntu6
* wording fix (ubuntu #36488)
* if no terminal activity is detected and the terminal is expanded
  set the urgency hint as well (ubuntu: #31436)

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
#include "i18n.h"
50
50
 
51
 
// timeout in sec until the expander is expanded
52
 
static const int RGTERMINAL_TIMEOUT=60;
 
51
// timeout in sec until the expander is expanded 
 
52
// (bigger nowdays because of the gconf stuff)
 
53
static const int RGTERMINAL_TIMEOUT=120;
53
54
 
54
55
 
55
56
void RGDebInstallProgress::child_exited(VteReaper *vtereaper,
315
316
   
316
317
}
317
318
 
 
319
 
318
320
void RGDebInstallProgress::cbClose(GtkWidget *self, void *data)
319
321
{
320
322
   //cout << "cbCancel: sending SIGKILL to child" << endl;
411
413
   if(_userDialog == NULL)
412
414
      _userDialog = new RGUserDialog(this);
413
415
 
 
416
   
 
417
   gtk_window_set_urgency_hint(GTK_WINDOW(_win), FALSE);
 
418
 
414
419
   // init the timer
415
420
   last_term_action = time(NULL);
416
421
}
470
475
            _startCounting = true;
471
476
         }
472
477
 
 
478
         // reset the urgency hint, something changed on the terminal
 
479
         if(gtk_window_get_urgency_hint(GTK_WINDOW(_win)))
 
480
            gtk_window_set_urgency_hint(GTK_WINDOW(_win), FALSE);
 
481
 
473
482
         float val = atof(percent)/100.0;
474
483
         //cout << "progress: " << val << endl;
475
484
         gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(_pbarTotal), val);
504
513
      w = glade_xml_get_widget(_gladeXML, "expander_terminal");
505
514
      gtk_expander_set_expanded(GTK_EXPANDER(w), TRUE);
506
515
      last_term_action = time(NULL);
 
516
      // try to get the attention of the user
 
517
      gtk_window_set_urgency_hint(GTK_WINDOW(_win), TRUE);
507
518
   } 
508
519
 
509
520