You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
24 lines
1.0 KiB
7 years ago
|
+++ plugins/trayicon.py
|
||
|
@@ -110,8 +110,6 @@
|
||
|
self.window = self.shell.get_window()
|
||
|
self.minimize_to_tray_delete_handler = self.window.connect("delete_event",
|
||
|
self.trayicon_minimize_on_close)
|
||
|
- self.minimize_to_tray_minimize_handler = self.window.connect("window-state-event",
|
||
|
- self.window_state_event_cb)
|
||
|
|
||
|
# show the window if it is hidden when starting liferea
|
||
|
self.window.deiconify()
|
||
7 years ago
|
@@ -123,12 +121,6 @@
|
||
7 years ago
|
self.feedlist_new_items_cb_id = sigid
|
||
|
self.feedlist = feedlist
|
||
|
|
||
|
- def window_state_event_cb(self, widget, event):
|
||
|
- "Hide window when minimize"
|
||
|
- if event.changed_mask & event.new_window_state & Gdk.WindowState.ICONIFIED:
|
||
7 years ago
|
- self.window.deiconify()
|
||
7 years ago
|
- self.window.hide()
|
||
|
-
|
||
|
def trayicon_click(self, widget, data = None):
|
||
|
self.window.deiconify()
|
||
|
self.window.show()
|