1
# Copyright (C) 2010-2011 LottaNZB Development Team
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; version 3.
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
# GNU General Public License for more details.
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
18
from lottanzb.util.gtk_extras import gtk_lock
19
from lottanzb.gui.framework import MainDelegateComponent
21
class Dialog(MainDelegateComponent):
22
builder_file = "restart_dialog"
26
gobject.timeout_add(40, self.on_progress_timeout)
28
def on_progress_timeout(self):
32
return not self.unloaded
37
MainDelegateComponent.on_unload(self)