浏览代码

fixed clic for new i3pystatus version

master
Robin Thoni 9 年前
父节点
当前提交
1b3816d51d
共有 2 个文件被更改,包括 5 次插入4 次删除
  1. 二进制
      i3/status/i3status/__pycache__/change_i3pystatus.cpython-34.pyc
  2. 5
    4
      i3/status/i3status/change_i3pystatus.py

二进制
i3/status/i3status/__pycache__/change_i3pystatus.cpython-34.pyc 查看文件


+ 5
- 4
i3/status/i3status/change_i3pystatus.py 查看文件

@@ -82,9 +82,10 @@ def change_clock():
82 82
     def display_calendar_ignore(s):
83 83
         display_calendar(False, s)
84 84
 
85
-    Clock.display_calendar = display_calendar_quit
86
-    Clock.on_leftclick = display_calendar_quit
87
-    Clock.on_rightclick = display_calendar_ignore
85
+    Clock.display_calendar_quit = display_calendar_quit
86
+    Clock.display_calendar_ignore = display_calendar_ignore
87
+    Clock.on_leftclick = "display_calendar_quit"
88
+    Clock.on_rightclick = "display_calendar_ignore"
88 89
 
89 90
 
90 91
 ###############################################################################
@@ -102,7 +103,7 @@ def change_network():
102 103
     # We add the correct settings and we init everything properly
103 104
     Network.format_up_hide = Network.format_up
104 105
     Network.format_down_hide = Network.format_down
105
-    Network.on_leftclick = switch_hide
106
+    Network.on_leftclick = "switch_hide"
106 107
     Network.settings += (("format_down_hide", ""),)
107 108
     Network.settings += (("format_up_hide", ""),)
108 109
 

正在加载...
取消
保存