[gnome-settings-daemon] updates: Avoid a 'state unknown: 4' warning



commit b671a1f3e5b5a558b0f3519e9eee16b9ba33436d
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 19 20:11:26 2012 -0400

    updates: Avoid a 'state unknown: 4' warning
    
    PK_NETWORK_ENUM_WIFI is a pretty well-known state. So don't
    claim it is unknown. I think it would much more sane if the
    frontend taked to NetworkManager directly...

 plugins/updates/gsd-updates-refresh.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-refresh.c b/plugins/updates/gsd-updates-refresh.c
index 79be52b..54e4b3f 100644
--- a/plugins/updates/gsd-updates-refresh.c
+++ b/plugins/updates/gsd-updates-refresh.c
@@ -343,6 +343,7 @@ convert_network_state (GsdUpdatesRefresh *refresh, PkNetworkEnum state)
 
         /* online */
         if (state == PK_NETWORK_ENUM_ONLINE ||
+            state == PK_NETWORK_ENUM_WIFI ||
             state == PK_NETWORK_ENUM_WIRED)
                 return TRUE;
 



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