Remove support for AWN, which isn’t maintained anymore

This commit is contained in:
Emmanuel Gil Peyrot 2017-12-13 23:19:16 +01:00
parent 4e7fcea288
commit f4cae17d9f
2 changed files with 0 additions and 28 deletions

View File

@ -2185,33 +2185,6 @@ class Interface:
################################################################################
@staticmethod
def change_awn_icon_status(status):
if not dbus_support.supported:
# do nothing if user doesn't have D-Bus bindings
return
try:
bus = dbus.SessionBus()
if not 'com.google.code.Awn' in bus.list_names():
# Awn is not installed
return
except Exception:
return
iconset = app.config.get('iconset')
prefix = os.path.join(helpers.get_iconset_path(iconset), '32x32')
if status in ('chat', 'away', 'xa', 'dnd', 'invisible', 'offline'):
status = status + '.png'
elif status == 'online':
prefix = ''
status = gtkgui_helpers.get_icon_path('org.gajim.Gajim', 32)
path = os.path.join(prefix, status)
try:
obj = bus.get_object('com.google.code.Awn', '/com/google/code/Awn')
awn = dbus.Interface(obj, 'com.google.code.Awn')
awn.SetTaskIconByName('Gajim', os.path.abspath(path))
except Exception:
pass
def enable_music_listener(self):
listener = MusicTrackListener.get()
if not self.music_track_changed_signal:

View File

@ -2335,7 +2335,6 @@ class RosterWindow:
liststore.prepend([status_combobox_text,
app.interface.jabber_state_images['16'][show], show, False])
self.status_combobox.set_active(0)
app.interface.change_awn_icon_status(show)
self.combobox_callback_active = True
if app.interface.systray_enabled:
app.interface.systray.change_status(show)