[gnome-software/gnome-3-10] Do not load PackageKit in GsApplication



commit 32af11ef0680ffd73c149c5d625689267bd75ecb
Author: Richard Hughes <richard hughsie com>
Date:   Wed Oct 2 09:48:23 2013 +0100

    Do not load PackageKit in GsApplication

 src/gs-application.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 4b2aeb2..4e730fa 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -26,7 +26,6 @@
 #include <stdlib.h>
 #include <glib/gi18n.h>
 #include <gtk/gtk.h>
-#include <packagekit-glib2/packagekit.h>
 #include <libnotify/notify.h>
 
 #include "gs-box.h"
@@ -38,7 +37,6 @@ struct _GsApplication {
 
        GCancellable        *cancellable;
        GtkApplication    *application;
-       PkTask            *task;
        GtkCssProvider    *provider;
        GsPluginLoader    *plugin_loader;
        gint                 pending_apps;
@@ -157,10 +155,6 @@ gs_application_startup (GApplication *application)
        g_object_unref (file);
        g_free (theme);
 
-       /* setup pk */
-       app->task = pk_task_new ();
-       g_object_set (app->task, "background", FALSE, NULL);
-
        /* setup plugins */
        app->plugin_loader = gs_plugin_loader_new ();
        gs_plugin_loader_set_location (app->plugin_loader, NULL);
@@ -287,7 +281,6 @@ gs_application_finalize (GObject *object)
        GsApplication *app = GS_APPLICATION (object);
 
        g_clear_object (&app->plugin_loader);
-       g_clear_object (&app->task);
        g_clear_object (&app->cancellable);
        g_clear_object (&app->shell);
        g_clear_object (&app->provider);


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