mirror of
https://github.com/gryf/wicd.git
synced 2026-03-16 06:33:33 +01:00
Added icons for wireless networks and disconnect states
This commit is contained in:
@@ -218,7 +218,8 @@ class TrayIcon(object):
|
|||||||
self.tr.set_tooltip(status_string)
|
self.tr.set_tooltip(status_string)
|
||||||
self.set_signal_image(int(strength), lock)
|
self.set_signal_image(int(strength), lock)
|
||||||
self._show_notification(self.network,
|
self._show_notification(self.network,
|
||||||
language['connection_established'])
|
language['connection_established'],
|
||||||
|
'network-wireless')
|
||||||
|
|
||||||
|
|
||||||
def set_connecting_state(self, info):
|
def set_connecting_state(self, info):
|
||||||
@@ -239,7 +240,8 @@ class TrayIcon(object):
|
|||||||
'network-wired')
|
'network-wired')
|
||||||
else:
|
else:
|
||||||
self._show_notification(cur_network,
|
self._show_notification(cur_network,
|
||||||
language['establishing_connection'])
|
language['establishing_connection'],
|
||||||
|
'network-wireless')
|
||||||
|
|
||||||
|
|
||||||
@catchdbus
|
@catchdbus
|
||||||
@@ -254,7 +256,7 @@ class TrayIcon(object):
|
|||||||
else:
|
else:
|
||||||
status = language['not_connected']
|
status = language['not_connected']
|
||||||
self.tr.set_tooltip(status)
|
self.tr.set_tooltip(status)
|
||||||
self._show_notification(language['disconnected'], None)
|
self._show_notification(language['disconnected'], None, 'stop')
|
||||||
|
|
||||||
@catchdbus
|
@catchdbus
|
||||||
def update_tray_icon(self, state=None, info=None):
|
def update_tray_icon(self, state=None, info=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user