Skip to content

Commit

Permalink
fix test mode
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@13733 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 15, 2016
1 parent c1a946c commit 433f907
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/xpra/client/gtk_base/statusicon_tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@ def may_guess(self):
def activate_menu(self, widget, *args):
log("activate_menu(%s, %s)", widget, args)
self.may_guess()
self.click_cb(1, 1)
self.click_cb(1, 0)
if self.click_cb:
self.click_cb(1, 1)
self.click_cb(1, 0)

def popup_menu(self, widget, button, time, *args):
log("popup_menu(%s, %s, %s, %s)", widget, button, time, args)
self.may_guess()
self.click_cb(button, 1, 0)
self.click_cb(button, 0, 0)
if self.click_cb:
self.click_cb(button, 1, 0)
self.click_cb(button, 0, 0)


def hide(self, *args):
Expand Down Expand Up @@ -166,10 +168,11 @@ def main():
log.enable_debug()
from xpra.gtk_common.gobject_compat import import_glib
glib = import_glib()
s = GTKStatusIconTray(None, "test", "xpra.png", None, None, None, gtk.main_quit)
log.enable_debug()
s = GTKStatusIconTray(None, None, "test", "xpra.png", None, None, None, gtk.main_quit)
glib.timeout_add(1000*2, s.set_blinking, True)
glib.timeout_add(1000*5, s.set_blinking, False)
glib.timeout_add(1000*10, gtk.main_quit)
glib.timeout_add(1000*30, gtk.main_quit)
gtk.main()


Expand Down

0 comments on commit 433f907

Please sign in to comment.