Skip to content
Snippets Groups Projects
Commit 255c4784 authored by nkour's avatar nkour
Browse files

changing a bit the behaviour for left clicking trayicon, old behavior now in middle click

parent 9a446f3e
No related branches found
No related tags found
No related merge requests found
......@@ -198,10 +198,10 @@ def make_groups_submenus_for_chat_with(self, account):
return groups_menu
def on_clicked(self, widget, event):
if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:
win = self.plugin.roster.window
if event.button == 1: # Left click
if len(self.jids) == 0:
win = self.plugin.roster.window
if win.is_active():
if win.flags() & gtk.VISIBLE:
win.hide()
else:
win.present()
......@@ -221,8 +221,7 @@ def on_clicked(self, widget, event):
acc['chats'][jid].set_active_tab(jid)
acc['chats'][jid].window.present()
if event.button == 2: # middle click
win = self.plugin.roster.window
if win.flags() & gtk.VISIBLE:
if win.is_active():
win.hide()
else:
win.present()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment