add a python2 ui flag for extensions

to mark python2/python3 only extensions.
TODO: change flag to python3 when merging to gtk3 branch.
Fixes #252.
This commit is contained in:
Eric Le Lay 2017-06-24 14:47:22 +02:00
parent a4365c99d6
commit 9f9c2230ae
2 changed files with 2 additions and 1 deletions

View file

@ -112,6 +112,7 @@ def main():
options, args = parser.parse_args(sys.argv)
gpodder.ui.gtk = True
gpodder.ui.python2 = True
gpodder.ui.unity = (os.environ.get('DESKTOP_SESSION', 'unknown').lower() in
('ubuntu', 'ubuntu-2d'))

View file

@ -14,7 +14,7 @@ _ = gpodder.gettext
__title__ = _('Gtk Status Icon')
__description__ = _('Show a status icon for Gtk-based Desktops.')
__category__ = 'desktop-integration'
__only_for__ = 'gtk'
__only_for__ = 'gtk,python2'
__disable_in__ = 'unity,win32'
import gtk