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



commit 429b0b47be4f61cee528a6d516d4f431fa710759
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 00900c5..3e23420 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -1812,7 +1812,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]