Browse Source

Upgrade liferea

master
mid-kid 6 years ago
parent
commit
9c0456e0c6
  1. 23
      satellites/extrafiles/liferea/liferea-1.12.1-dont-hide-window.patch
  2. 37
      satellites/extrafiles/liferea/liferea-1.12.5a-dont-hide-window.patch
  3. 12
      satellites/liferea.sat

23
satellites/extrafiles/liferea/liferea-1.12.1-dont-hide-window.patch

@ -1,23 +0,0 @@
+++ 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()
@@ -123,12 +121,6 @@
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:
- self.window.deiconify()
- self.window.hide()
-
def trayicon_click(self, widget, data = None):
self.window.deiconify()
self.window.show()

37
satellites/extrafiles/liferea/liferea-1.12.5a-dont-hide-window.patch

@ -0,0 +1,37 @@
+++ plugins/trayicon.py
@@ -109,11 +109,7 @@
self.window = self.shell.get_window()
self.delete_signal_id = GObject.signal_lookup("delete_event", Gtk.Window)
- GObject.signal_handlers_block_matched (self.window,
- GObject.SignalMatchType.ID | GObject.SignalMatchType.DATA,
- self.delete_signal_id, 0, None, None, None)
self.window.connect("delete_event", self.trayicon_minimize_on_close)
- self.window.connect("window-state-event", self.window_state_event_cb)
# show the window if it is hidden when starting liferea
self.window.deiconify()
@@ -125,12 +121,6 @@
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:
- self.window.deiconify()
- self.window.hide()
-
def trayicon_click(self, widget, data = None):
self.window.deiconify()
self.window.show()
@@ -189,10 +179,6 @@
def do_deactivate(self):
self.staticon.set_visible(False)
self.window.disconnect_by_func(self.trayicon_minimize_on_close)
- GObject.signal_handlers_unblock_matched (self.window,
- GObject.SignalMatchType.ID | GObject.SignalMatchType.DATA,
- self.delete_signal_id, 0, None,None,None)
- self.window.disconnect_by_func(self.window_state_event_cb)
self.feedlist.disconnect(self.feedlist_new_items_cb_id)

12
satellites/liferea.sat

@ -1,17 +1,17 @@
import 'compile/configure' import 'compile/configure'
name=liferea name=liferea
version=1.12.4 version=1.12.5
define_option '!patch: Apply some custom patches' define_option '!patch: Apply some custom patches'
dlextract "https://github.com/lwindolf/$name/releases/download/v$version/$name-$version.tar.bz2" \ dlextract "https://github.com/lwindolf/$name/releases/download/v$version/$name-${version}a.tar.bz2" \
'862cd7f6920ef3dfc1bc98c9930da5b4' '743e64cb319b20b6adc7c26c6cdab548'
option patch extrafile "$name-1.12.1-dont-hide-window.patch" option patch extrafile "$name-1.12.5a-dont-hide-window.patch"
_ _
cd "$name-$version" cd "$name-${version}a"
option patch patch -p0 -i "../$name-1.12.1-dont-hide-window.patch" option patch patch -p0 -i "../$name-1.12.5a-dont-hide-window.patch"
compile_configure -- --disable-schemas-compile --disable-static compile_configure -- --disable-schemas-compile --disable-static

Loading…
Cancel
Save