~elementary-apps/noise/source-view-api

« back to all changes in this revision

Viewing changes to plugins/Devices/AudioPlayers/AudioPlayerDeviceManager.vala

  • Committer: Corentin Noël
  • Date: 2012-11-09 01:16:11 UTC
  • Revision ID: tintou@mailoo.org-20121109011611-k7af6jfveeezfzv4
Plugins, contextmenu and other work

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    
40
40
    public void remove_all () {
41
41
        foreach(var dev in devices) {
42
 
            lm.lw.sideTree.deviceRemoved ((Noise.Device)dev);
 
42
            lm.device_removed ((Noise.Device)dev);
43
43
        }
44
44
        devices = new ArrayList<AudioPlayerDevice>();
45
45
    }
58
58
            if(added.start_initialization()) {
59
59
                added.finish_initialization();
60
60
                added.initialized.connect((d) => {lm.device_manager.deviceInitialized ((Noise.Device)d);});
61
 
                lm.lw.sideTree.deviceAdded ((Noise.Device)added);
 
61
                lm.device_added ((Noise.Device)added);
62
62
            }
63
63
            else {
64
64
                mount_removed(added.get_mount());
81
81
    public virtual void mount_removed (Mount mount) {
82
82
        foreach(var dev in devices) {
83
83
            if(dev.get_uri() == mount.get_default_location().get_uri()) {
84
 
                lm.lw.sideTree.deviceRemoved ((Noise.Device)dev);
 
84
                lm.device_removed ((Noise.Device)dev);
85
85
                
86
86
                // Actually remove it
87
87
                devices.remove(dev);