[gnome-control-center/gnome-3-2] info: Don't warn if PackageKit isn't around



commit 9beb1215e67031b2f57088f3f2d2464ea2a5d713
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Sep 20 01:35:08 2011 +0100

    info: Don't warn if PackageKit isn't around
    
    https://bugzilla.gnome.org/show_bug.cgi?id=659367

 panels/info/cc-info-panel.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index eebdd71..af80bac 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -1321,7 +1321,8 @@ on_pk_get_tid_ready (GObject      *source,
   result = g_dbus_proxy_call_finish (G_DBUS_PROXY (source), res, &error);
   if (result == NULL)
     {
-      g_warning ("Error getting PackageKit transaction ID: %s", error->message);
+      if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN) == FALSE)
+        g_warning ("Error getting PackageKit transaction ID: %s", error->message);
       g_error_free (error);
       return;
     }



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