~ubuntu-branches/ubuntu/trusty/miro/trusty

« back to all changes in this revision

Viewing changes to portable/frontends/widgets/gtk/persistentwindow.py

  • Committer: Daniel Hahler
  • Date: 2010-04-13 18:51:35 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: ubuntu-launchpad@thequod.de-20100413185135-xi24v1diqg8w406x
Merging shared upstream rev into target branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Miro - an RSS based video player application
2
 
# Copyright (C) 2005-2009 Participatory Culture Foundation
 
2
# Copyright (C) 2005-2010 Participatory Culture Foundation
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
5
5
# it under the terms of the GNU General Public License as published by
77
77
        self.persistent_window.set_events(self.get_events())
78
78
        self.persistent_window.set_user_data(self)
79
79
 
 
80
    def do_configure_event(self, event):
 
81
        self.persistent_window.resize(event.width, event.height)
 
82
 
80
83
    def do_size_allocate(self, allocation):
81
84
        gtk.DrawingArea.do_size_allocate(self, allocation)
82
85
        self.persistent_window.resize(allocation.width, allocation.height)
90
93
    def do_destroy(self):
91
94
        try:
92
95
            gtk.DrawingArea.do_destroy(self)
 
96
            self.persistent_window.withdraw()
93
97
            self.persistent_window.destroy()
94
98
            self.persistent_window = None
95
99
        except AttributeError: