diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-09-06 10:57:44 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-09-06 10:57:44 +0100 |
commit | 00618412f6db4570b9708f9e4ee61bb64ce37c1b (patch) | |
tree | 1651e0fbde6882747814e206ef21d1b0d16735f4 /src | |
parent | f177b1e0b8ab0413a6eced41de3710e38852319a (diff) | |
download | ayatana-indicator-session-00618412f6db4570b9708f9e4ee61bb64ce37c1b.tar.gz ayatana-indicator-session-00618412f6db4570b9708f9e4ee61bb64ce37c1b.tar.bz2 ayatana-indicator-session-00618412f6db4570b9708f9e4ee61bb64ce37c1b.zip |
another bug found within the apt-menuitem
Diffstat (limited to 'src')
-rw-r--r-- | src/apt-watcher.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/apt-watcher.c b/src/apt-watcher.c index 480e174..167b847 100644 --- a/src/apt-watcher.c +++ b/src/apt-watcher.c @@ -380,11 +380,17 @@ static void apt_watcher_signal_cb ( GDBusProxy* proxy, gchar* current = NULL; g_debug ("ActiveTransactionsChanged"); - //gchar** queued = NULL; g_variant_get(value, "s", ¤t); + if (g_str_has_prefix (current, "/org/debian/apt/transaction/") == TRUE){ g_debug ("ActiveTransactionsChanged - current is %s", current); + // Cancel all existing operations. + if (self->reboot_query != 0){ + g_source_remove (self->reboot_query); + self->reboot_query = 0; + } + if (self->current_transaction != NULL) { g_object_unref (G_OBJECT(self->current_transaction)); |