Update the cache within an idle call (NB#154290)
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 27 Jan 2010 13:33:28 +0000 (14:33 +0100)
committerAlberto Garcia <agarcia@igalia.com>
Mon, 7 Jun 2010 09:46:54 +0000 (11:46 +0200)
commit921ce87c0fde266d102c5786bec49561a200746a
tree0b34dd15f1f447a10fc267b14c9197e2ebf6678d
parent7c121c251ac728696ad0d8c404ac5074f1d22bf2
Update the cache within an idle call (NB#154290)

* src/main.cc (suavarc_refresh_package_cache): New function.
  (show_upgrade_applications_view_and_refresh_callback): Run the cache
  refresing when idle, so we give the drawing system a time tu use the theme.

This patch also check if the package list is already in the front-end, so we
can avoid a possible "Operation failed" message. But this will inhibit the
check-for-updates if you go to the updates view while the package list is
processed.
src/main.cc