lp://staging/~3v1n0/bamf/factory-ref-rework

Created by Marco Trevisan (Treviño) and last modified
Get this branch:
bzr branch lp://staging/~3v1n0/bamf/factory-ref-rework
Only Marco Trevisan (Treviño) can upload to this branch. If you are Marco Trevisan (Treviño) please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Marco Trevisan (Treviño)
Project:
BAMF
Status:
Merged

Recent revisions

569. By Marco Trevisan (Treviño)

BamfFactory: comment wording fix

568. By Marco Trevisan (Treviño)

BamfFactory: only care about closed views when rematching

It's unsafe to try to rematch an allocated view that is not closed, since it could lead to a
path change. We were not able do this before since we had no way to get if a view
was closed if its remote owner disappeared. With gdbus this is easily possible, instead.

567. By Marco Trevisan (Treviño)

BamfView: set a view closed if the name-owner has changed to an invalid value...

This happens when bamf-daemon is killed/closed and thanks with gdbus we can now
track this case to handle it properly.

566. By Marco Trevisan (Treviño)

BamfView: make the closed signal to run_last.

565. By Marco Trevisan (Treviño)

BamfFactory: only remove all values from hashtable on dispose, destroy it on finalize

564. By Marco Trevisan (Treviño)

BamfFactory: weak_unref all the allocated views before of being disposed

563. By Marco Trevisan (Treviño)

BamfFactory: register again a view if it is closed

562. By Marco Trevisan (Treviño)

BamfFactory: some code cleanup

561. By Marco Trevisan (Treviño)

BamfFactory: don't allow a view to be closed more than once, unreffing them

Also make sure that if we don't have a valid path, we try to remove the view by
iterating the hash-table.

560. By Marco Trevisan (Treviño)

BamfFactory: completely move the ownership of the registered views to the HashTable

The views are now ref'd when added to it and unreffed on removal.
Then it's up to the clients to handle their ownership in other cases.

Branch metadata

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