trying to remove from taskbar when having systray clicked. In XFCE4 it doesn't work atm
This commit is contained in:
parent
607dd00a0c
commit
2ac7183555
|
@ -175,13 +175,12 @@ class systray:
|
||||||
if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:
|
if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:
|
||||||
if len(self.jids) == 0:
|
if len(self.jids) == 0:
|
||||||
win = self.plugin.roster.window
|
win = self.plugin.roster.window
|
||||||
if win.iconify_initially:
|
if win.is_active():
|
||||||
win.deiconify()
|
win.iconify()
|
||||||
|
win.skip_taskbar_hint = True
|
||||||
else:
|
else:
|
||||||
if win.is_active():
|
win.present()
|
||||||
win.iconify()
|
win.skip_taskbar_hint = False
|
||||||
else:
|
|
||||||
win.present()
|
|
||||||
else:
|
else:
|
||||||
account = self.jids[0][0]
|
account = self.jids[0][0]
|
||||||
jid = self.jids[0][1]
|
jid = self.jids[0][1]
|
||||||
|
@ -194,7 +193,7 @@ class systray:
|
||||||
else:
|
else:
|
||||||
self.plugin.roster.new_chat(
|
self.plugin.roster.new_chat(
|
||||||
self.plugin.roster.contacts[account][jid][0], account)
|
self.plugin.roster.contacts[account][jid][0], account)
|
||||||
if event.button == 3:
|
if event.button == 3: # right click
|
||||||
self.make_menu(event)
|
self.make_menu(event)
|
||||||
|
|
||||||
def on_online_menuitem_activate(self, widget):
|
def on_online_menuitem_activate(self, widget):
|
||||||
|
|
Loading…
Reference in New Issue