diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-09-18 16:17:57 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-09-18 16:17:57 +0200 |
commit | da9fde78ca62bd0b05dfbee3e024fd776c29c373 (patch) | |
tree | e106dee05400f04d7565b7779359c5947208de0f /libmessaging-menu/messaging-menu.c | |
parent | 624b6e5dd7bd32fc3f57b8c423c52f0d6738d0a7 (diff) | |
download | ayatana-indicator-messages-da9fde78ca62bd0b05dfbee3e024fd776c29c373.tar.gz ayatana-indicator-messages-da9fde78ca62bd0b05dfbee3e024fd776c29c373.tar.bz2 ayatana-indicator-messages-da9fde78ca62bd0b05dfbee3e024fd776c29c373.zip |
libmessaging-menu: don't set app->status when global status changes
The application's status only changes when it calls _set_status, so it's wrong
to set the internal status when the global status changes.
This shouldn't be a problem in practice, as app->status is not accessible from
the API.
Diffstat (limited to 'libmessaging-menu/messaging-menu.c')
-rw-r--r-- | libmessaging-menu/messaging-menu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmessaging-menu/messaging-menu.c b/libmessaging-menu/messaging-menu.c index fe2583b..1b2e694 100644 --- a/libmessaging-menu/messaging-menu.c +++ b/libmessaging-menu/messaging-menu.c @@ -580,8 +580,7 @@ global_status_changed (IndicatorMessagesService *service, status = status_from_string (status_str); g_return_if_fail (status >= 0); - app->status = (MessagingMenuStatus)status; - g_signal_emit (app, signals[STATUS_CHANGED], 0, app->status); + g_signal_emit (app, signals[STATUS_CHANGED], 0, status); } static void |