[gnome-software] Do not load PackageKit in GsApplication



commit 036bc704ffc6aa40323f4ea3868a1fb662bd901d
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 afb051b..6d5a14d 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);
@@ -288,7 +282,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]