lp://qastaging/~mikemc/ubuntuone-control-panel/fix-sync-status

Created by Mike McCracken and last modified
Get this branch:
bzr branch lp://qastaging/~mikemc/ubuntuone-control-panel/fix-sync-status
Only Mike McCracken can upload to this branch. If you are Mike McCracken please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Mike McCracken
Project:
Ubuntu One Control Panel
Status:
Merged

Recent revisions

359. By Mike McCracken

remove unnecessary property for accessing status_changed_handlers

358. By Mike McCracken

Fix typos

357. By Mike McCracken

fix dbus tests, clean up code lint

356. By Mike McCracken

Added support in controlbackend for multiple status handlers.

Both the filsyncstatus.py widget in the main window and the menu item
in systray.py try to set the handler. This results in the
filesyncstatus widget no longer being updated, as the single variable
holding the callback in controlbackend is overwritten.

The issue does not appear on linux, because although the
controlbackend only has one variable, when it is changed, it wraps the
new callback and calls sd_client.set_status_changed_handler() with
that wrapper. On linux, the dbus implementation of the proxy that
sd_client uses *ADDS* the wrapper, while on the other platforms the
twisted implementation just overwrites the old handler.

This branch changes it so that we only ever set the sd_client callback
once, to a function in controlbackend that calls each of a list of
callbacks.

The filesyncstatus and systray widgets now call an
add_status_changed_handler function that adds to that list instead of
setting the single callback via a property.

Tests are included that use the new API, but would break if the new
API behaved the same as the old one.

IRL test shows this working on darwin. I had great difficulty getting
windows running from source, so I didn't do an IRL test on windows.

355. By Roberto Alsina

- Made --with-icon the default on Darwin

354. By Roberto Alsina

- Disabled search box until it's ready to work (Fixes LP: 1042885)

353. By Mike McCracken

- Fix race in backend get_credentials call. (LP: #1042860)

352. By Diego Sarmentero

- Adding functionality to the Share Links Tab (LP: #1039142).

351. By Roberto Alsina

- Fixed saving/restoring the speed throttling (Fixes LP:1040899)

350. By Roberto Alsina

- Switched to non-native dialog on darwin (LP:1040905).

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://qastaging/ubuntuone-control-panel
This branch contains Public information 
Everyone can see this information.

Subscribers