Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Extension: Minimize on start (bug 1633)
Implement extension script that will minimize (iconify) the main
window of the Gtk+ UI on startup (like the old config option).
  • Loading branch information
thp committed Jul 31, 2012
1 parent aa42c01 commit 92ec888
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions share/gpodder/extensions/minimize_on_start.py
@@ -0,0 +1,21 @@
# -*- 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.')
__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()

0 comments on commit 92ec888

Please sign in to comment.