diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2011-09-09 11:15:41 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2011-09-09 11:15:41 +0200 |
commit | fd2ef977b064cb3a91f772609906d6df714a0078 (patch) | |
tree | 163ff45190b22ceb4bcf0fc601867579e746dfe5 /src/apt-transaction.c | |
parent | f0fea9a9edb4529aca7a81de11259122e5e6d72e (diff) | |
parent | 938c7103ae2b9ebdd2381d6b25ba430ac900ed55 (diff) | |
download | ayatana-indicator-session-fd2ef977b064cb3a91f772609906d6df714a0078.tar.gz ayatana-indicator-session-fd2ef977b064cb3a91f772609906d6df714a0078.tar.bz2 ayatana-indicator-session-fd2ef977b064cb3a91f772609906d6df714a0078.zip |
* New upstream release:
- fix the updates menu items randomly working (lp: #842946)
- "Guest Session should not show if guest session was disabled in
the display manager" (lp: #835084)
- segfault fix (lp: #840660)
- don't display temporary guest user generated username (lp: #844272)
- respect "show-real-name-on-panel" to hide the username (lp: #812728)
Diffstat (limited to 'src/apt-transaction.c')
-rw-r--r-- | src/apt-transaction.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/src/apt-transaction.c b/src/apt-transaction.c index cd9e131..317d74a 100644 --- a/src/apt-transaction.c +++ b/src/apt-transaction.c @@ -160,7 +160,7 @@ apt_transaction_receive_signal (GDBusProxy * proxy, AptTransaction* self = APT_TRANSACTION(user_data); AptState current_state = DONT_KNOW; - if (g_strcmp0(signal_name, "PropertyChanged") == 0 && self->type == SIMULATION) + if (g_strcmp0(signal_name, "PropertyChanged") == 0) { gchar* prop_name= NULL; GVariant* value = NULL; @@ -204,23 +204,22 @@ apt_transaction_receive_signal (GDBusProxy * proxy, current_state = UP_TO_DATE; } } - } - else if (g_strcmp0(signal_name, "PropertyChanged") == 0 && - self->type == REAL) - { - GVariant* role = g_dbus_proxy_get_cached_property (self->proxy, - "Role"); - if (g_variant_is_of_type (role, G_VARIANT_TYPE_STRING) == TRUE){ - gchar* current_role = NULL; - g_variant_get (role, "s", ¤t_role); - //g_debug ("Current transaction role = %s", current_role); - if (g_strcmp0 (current_role, "role-commit-packages") == 0 || - g_strcmp0 (current_role, "role-upgrade-system") == 0){ - g_debug ("UPGRADE IN PROGRESS"); - current_state = UPGRADE_IN_PROGRESS; + if (self->type == REAL) + { + GVariant* role = g_dbus_proxy_get_cached_property (self->proxy, + "Role"); + if (g_variant_is_of_type (role, G_VARIANT_TYPE_STRING) == TRUE){ + gchar* current_role = NULL; + g_variant_get (role, "s", ¤t_role); + //g_debug ("Current transaction role = %s", current_role); + if (g_strcmp0 (current_role, "role-commit-packages") == 0 || + g_strcmp0 (current_role, "role-upgrade-system") == 0){ + g_debug ("UPGRADE IN PROGRESS"); + current_state = UPGRADE_IN_PROGRESS; + } } - } - } + } + } else if (g_strcmp0(signal_name, "Finished") == 0) { g_debug ("TRANSACTION Finished"); |