Package: gpodder
Version: 3.10.1-1
Tags: patch
User: [email protected]
Usertags: ayatana-appindicator

Dear maintainer of gpodder,

find attached a .debdiff that (a) fixes AppIndicator support in gpodder (AppIndicator extension is still in Python2, the patch ports it to GIO and Python3) and (b) ports it from Ubuntu's AppIndicator module to the Ayatana AppIndicator Python module.

This contribution is part of the Ayatana Indicators shift in Debian.

For more info, see
https://lists.debian.org/debian-devel/2018/03/msg00506.html

Thanks,
Mike
--

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
mobile: +49 (1520) 1976 148
landline: +49 (4354) 8390 139

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: [email protected], http://das-netzwerkteam.de

diff -Nru gpodder-3.10.1/debian/changelog gpodder-3.10.1/debian/changelog
--- gpodder-3.10.1/debian/changelog     2018-02-22 05:21:19.000000000 +0100
+++ gpodder-3.10.1/debian/changelog     2018-05-11 14:08:48.000000000 +0200
@@ -1,3 +1,14 @@
+gpodder (3.10.1-1.1+ayatanaappindicator) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * debian/patches:
+    + Add 
switch-appindicator-extension-to-AyatanaAppIndicator-and-python3.patch.
+  * debian/control:
+    + Drop from R: python3-appindicator (does not exist).
+    + Add to R instead: gir1.2-ayatanaappindicator3-0.1.
+
+ -- Mike Gabriel <[email protected]>  Fri, 11 May 2018 14:08:48 
+0200
+
 gpodder (3.10.1-1) unstable; urgency=medium
 
   * New upstream version 3.10.1
diff -Nru gpodder-3.10.1/debian/control gpodder-3.10.1/debian/control
--- gpodder-3.10.1/debian/control       2018-02-22 05:21:19.000000000 +0100
+++ gpodder-3.10.1/debian/control       2018-05-11 14:08:48.000000000 +0200
@@ -27,7 +27,7 @@
  python3-mygpoclient,
  python3-podcastparser
 Recommends:
- python3-appindicator,
+ gir1.2-ayatanaappindicator3-0.1,
  python3-eyed3,
  python3-html5lib,
  python3-simplejson
diff -Nru gpodder-3.10.1/debian/patches/series 
gpodder-3.10.1/debian/patches/series
--- gpodder-3.10.1/debian/patches/series        2018-02-22 05:21:19.000000000 
+0100
+++ gpodder-3.10.1/debian/patches/series        2018-05-11 14:08:48.000000000 
+0200
@@ -2,3 +2,4 @@
 utf-8_coding_for_setup.patch
 remove_copyright_character.patch
 update_release_date.patch
+switch-appindicator-extension-to-AyatanaAppIndicator-and-python3.patch
diff -Nru 
gpodder-3.10.1/debian/patches/switch-appindicator-extension-to-AyatanaAppIndicator-and-python3.patch
 
gpodder-3.10.1/debian/patches/switch-appindicator-extension-to-AyatanaAppIndicator-and-python3.patch
--- 
gpodder-3.10.1/debian/patches/switch-appindicator-extension-to-AyatanaAppIndicator-and-python3.patch
        1970-01-01 01:00:00.000000000 +0100
+++ 
gpodder-3.10.1/debian/patches/switch-appindicator-extension-to-AyatanaAppIndicator-and-python3.patch
        2018-05-11 14:08:48.000000000 +0200
@@ -0,0 +1,36 @@
+--- a/share/gpodder/extensions/ubuntu_appindicator.py
++++ b/share/gpodder/extensions/ubuntu_appindicator.py
+@@ -7,7 +7,7 @@
+ 
+ _ = gpodder.gettext
+ 
+-__title__ = _('Ubuntu App Indicator')
++__title__ = _('Ayatana App Indicator')
+ __description__ = _('Show a status indicator in the top bar.')
+ __authors__ = 'Thomas Perl <[email protected]>'
+ __category__ = 'desktop-integration'
+@@ -16,7 +16,9 @@
+ __disable_in__ = 'win32'
+ 
+ 
+-import appindicator
++from gi import require_version
++require_version('AyatanaAppIndicator3', '0.1')
++from gi.repository import AyatanaAppIndicator3 as appindicator
+ from gi.repository import Gtk
+ 
+ import logging
+@@ -38,9 +40,10 @@
+ 
+     def on_load(self):
+         if self.config.visible:
+-            self.indicator = appindicator.Indicator('gpodder', 'gpodder',
+-                    appindicator.CATEGORY_APPLICATION_STATUS)
+-            self.indicator.set_status(appindicator.STATUS_ACTIVE)
++            self.indicator = appindicator.Indicator.new('gpodder', 'gpodder',
++                    appindicator.IndicatorCategory.APPLICATION_STATUS)
++            self.indicator.set_status(appindicator.IndicatorStatus.ACTIVE)
++
+ 
+     def _rebuild_menu(self):
+         menu = Gtk.Menu()

Attachment: pgpVedbhbFK1Y.pgp
Description: Digitale PGP-Signatur

Reply via email to