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)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 27 Jan 2010 13:33:55 +0000 (14:33 +0100)
commitdae4c06fbc453e5357a2ce4a7a34327481fcac99
tree53d207c364cc28479534db0543c3b41a386a7d7f
parent95032a82ec936c13707357b516d5310a6d8f300a
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