~jibel/synaptic/bugs.309906.385739.403165

« back to all changes in this revision

Viewing changes to gtk/rgmainwindow.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-06-15 17:17:28 UTC
  • Revision ID: james.westby@ubuntu.com-20090615171728-r3eumzd8xuj10zzr
Tags: 0.62.6ubuntu2
show progress when searching and not not block the UI
(LP: #24188)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2432
2432
         locale_str = str.c_str();
2433
2433
 
2434
2434
      int type = me->_findWin->getSearchType();
2435
 
      int found;
2436
 
      found = me->_lister->searchView()->setSearch(str, type, locale_str);
 
2435
      GtkWidget *progress = glade_xml_get_widget(me->_gladeXML, "progressbar_main");
 
2436
      GtkWidget *label = glade_xml_get_widget(me->_gladeXML, "label_status");
 
2437
      RGCacheProgress searchProgress(progress, label);
 
2438
      int found = me->_lister->searchView()->setSearch(str,type, 
 
2439
                                                       locale_str,
 
2440
                                                       searchProgress);
2437
2441
      me->changeView(PACKAGE_VIEW_SEARCH, str);
2438
2442
 
2439
2443
      me->setBusyCursor(false);