- Add category metadata in every extension - Show this category in the extension list gui - Add "mandatory_in" and "disable-in" configuration for an extension - Add Ubuntu unity check to enable/disable unity specific extensions - Move "gpodder.win32" and "gpodder.osx" setting to the "gpodder.ui" namespace to be able to use it in the extensions category settings - Only show metadata information in the right-click dialog of an extension
23 lines
528 B
Python
23 lines
528 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Minimize gPodder's main window on startup
|
|
# Thomas Perl <thp@gpodder.org>; 2012-07-31
|
|
|
|
import gpodder
|
|
|
|
_ = gpodder.gettext
|
|
|
|
__title__ = _('Minimize on start')
|
|
__description__ = _('Minimizes the gPodder window on startup.')
|
|
__category__ = 'interface'
|
|
__only_for__ = 'gtk'
|
|
|
|
class gPodderExtension:
|
|
def __init__(self, container):
|
|
self.container = container
|
|
|
|
def on_ui_object_available(self, name, ui_object):
|
|
if name == 'gpodder-gtk':
|
|
ui_object.main_window.iconify()
|
|
|