~ubuntu-branches/ubuntu/wily/blueman/wily

« back to all changes in this revision

Viewing changes to blueman/gui/manager/ManagerToolbar.py

  • Committer: Package Import Robot
  • Author(s): Sean Davis
  • Date: 2015-09-07 12:48:18 UTC
  • mfrom: (2.3.11 sid)
  • Revision ID: package-import@ubuntu.com-20150907124818-evulc0mhjotz8q29
Tags: 2.0-1ubuntu1
* Merge from Debian unstable (LP: #1482626). Remaining changes:
  - debian/patches/03_filemanage_fix.patch:
    + Dropped, no longer needed.
  - debian/patches/dhcpclient_priority
  - debian/patches/01_dont_autostart_lxde.patch
    + Refreshed patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from __future__ import print_function
 
2
from __future__ import division
 
3
from __future__ import absolute_import
 
4
from __future__ import unicode_literals
 
5
 
1
6
from blueman.Constants import *
2
7
from blueman.Functions import dprint
3
8
from blueman.Sdp import *
64
69
            func(device)
65
70
 
66
71
 
67
 
    def on_adapter_property_changed(self, List, adapter, (key, value)):
 
72
    def on_adapter_property_changed(self, List, adapter, key_value):
 
73
        key, value = key_value
68
74
        if key == "Discovering":
69
75
            if value:
70
76
                self.b_search.props.sensitive = False
130
136
            self.b_send.props.sensitive = True
131
137
 
132
138
 
133
 
    def on_device_propery_changed(self, dev_list, device, iter, (key, value)):
 
139
    def on_device_propery_changed(self, dev_list, device, iter, key_value):
 
140
        key, value = key_value
134
141
        if dev_list.compare(iter, dev_list.selected()):
135
142
            if key == "Trusted" or key == "Paired":
136
143
                self.on_device_selected(dev_list, device, iter)
141
148
 
142
149
            elif key == "UUIDs":
143
150
                self.update_send_browse(device)
144
 
                                
145
 
                
146