diff options
-rw-r--r-- | src/apt-watcher.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/apt-watcher.c b/src/apt-watcher.c index 41ed8fc..eed0080 100644 --- a/src/apt-watcher.c +++ b/src/apt-watcher.c @@ -67,6 +67,11 @@ get_updates_complete (GObject *source_object, GPtrArray *packages; packages = pk_results_get_package_array (results); + g_print ("Packages count = %i", + packages->len); + if (packages->len > 0){ + + } g_ptr_array_unref (packages); g_object_unref (results); } @@ -135,10 +140,10 @@ fetch_proxy_cb (GObject * object, GAsyncResult * res, gpointer user_data) AptWatcher* self = APT_WATCHER(user_data); g_return_if_fail(self != NULL); - GDBusProxy * proxy = g_dbus_proxy_new_for_bus_finish(res, &error); + GDBusProxy * proxy = g_dbus_proxy_new_for_bus_finish (res, &error); if (self->proxy_cancel != NULL) { - g_object_unref(self->proxy_cancel); + g_object_unref (self->proxy_cancel); self->proxy_cancel = NULL; } @@ -165,7 +170,6 @@ fetch_proxy_cb (GObject * object, GAsyncResult * res, gpointer user_data) self); } - static gboolean apt_watcher_start_apt_interaction (gpointer data) { |