[gnome-control-center] info: Fix the updates state machine



commit 460d2574831a1fff186cc677c0417b794fb232e2
Author: Richard Hughes <richard hughsie com>
Date:   Mon Mar 5 18:59:48 2012 +0000

    info: Fix the updates state machine
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=671393

 panels/info/cc-info-panel.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index b8729d0..0ecb472 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -1771,6 +1771,13 @@ on_pk_transaction_signal (GDBusProxy *proxy,
     }
   else if (g_strcmp0 (signal_name, "Finished") == 0)
     {
+      if (self->priv->updates_state == CHECKING_UPDATES)
+        self->priv->updates_state = UPDATES_NOT_AVAILABLE;
+      refresh_update_button (self);
+    }
+  else if (g_strcmp0 (signal_name, "ErrorCode") == 0)
+    {
+      self->priv->updates_state = PK_NOT_AVAILABLE;
       refresh_update_button (self);
     }
   else if (g_strcmp0 (signal_name, "Destroy") == 0)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]