GNOME Bugzilla – Bug 667743
Topup menu item not displayed when re-connecting account
Last modified: 2012-01-12 12:18:07 UTC
- Start empathy with a account supporting topup connected: menu is displayed - Disconnect and reconnect the account - Menu is not displayed
Created attachment 205075 [details] [review] roster-window: factor out add_account() Also fix a stupid bug where roster_window_account_removed_cb() was called on a valid account in roster_window_account_validity_changed_cb().
Created attachment 205076 [details] [review] roster-window: watch for TpAccount:connection changes The account being connected isn't longer enough to ensure that its TpConnection is defined.
You can remove roster_window_remove_balance_action() and roster_window_setup_balance() from roster_window_connection_changed_cb() now I think. Also in the notify::connection cb, shouldn't you call roster_window_remove_balance_action() if the property becomes NULL instead of roster_window_setup_balance() ?
Created attachment 205087 [details] [review] roster-window: watch for TpAccount:connection changes The account being connected isn't longer enough to ensure that its TpConnection is defined.
(In reply to comment #3) > You can remove roster_window_remove_balance_action() and > roster_window_setup_balance() from roster_window_connection_changed_cb() now I > think. > Also in the notify::connection cb, shouldn't you call > roster_window_remove_balance_action() if the property becomes NULL instead of > roster_window_setup_balance() ? Right, better to keep it symetric; done.
Looks good now. +1
Attachment 205075 [details] pushed as 4fcf2a8 - roster-window: factor out add_account() Attachment 205087 [details] pushed as ddb4928 - roster-window: watch for TpAccount:connection changes