diff options
author | Conor Curran <conor.curran@canonical.com> | 2012-02-07 14:35:29 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2012-02-07 14:35:29 +0000 |
commit | 6e585e5487560785caaaf129a1084fd94313ce11 (patch) | |
tree | a2fe440950e0b41261ed1fccabf76c63b38ea46a | |
parent | bf53f6ba5ca03a9cf6617eb09046ad5cc2e564ad (diff) | |
download | ayatana-indicator-session-6e585e5487560785caaaf129a1084fd94313ce11.tar.gz ayatana-indicator-session-6e585e5487560785caaaf129a1084fd94313ce11.tar.bz2 ayatana-indicator-session-6e585e5487560785caaaf129a1084fd94313ce11.zip |
apt watcher updates
-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) { |