~severinh/ubuntu/natty/lottanzb/merge-from-sid

« back to all changes in this revision

Viewing changes to lottanzb/gui/restart.py

  • Committer: Severin Heiniger
  • Date: 2011-02-18 09:11:15 UTC
  • mfrom: (2.1.5 sid)
  • Revision ID: severinheiniger@gmail.com-20110218091115-thdvummkn0ku5w52
* debian/lottanzb.install, debian/icons/*:
  + Add dark and light application icon for the panel menu.
* New upstream release.

* Switch to dpkg-source 3.0 (quilt) format.
* Use debhelper 7 instead of cdbs.
* Use dh_python2 instead of python-support.
* Delete superfluous debian/pyversions and debian/pycompat.

* debian/compat:
  + Bump to debhelper 7.
* debian/control:
  + Change Priority from extra to optional.
  + Replace XS-Python-Version with X-Python-Version and bump it to >= 2.6.
  + Remove cdbs and python-support from Build-Depends.
  + Bump debhelper to >= 7.0.50~ in Build-Depends.
  + Bump python to >= 2.6.6-3 in Build-Depends.
  + Remove python-kiwi, hellanzb and python from Depends.
  + Add python-configobj to Depends.
  + Bump python-gtk2 to >= 2.16 in Depends.
  + Bump yelp to >= 2.30 in Recommends for Mallard support.
  + Add python-apt and apturl to Recommends.
  + Add sabnzbdplus to Suggests.
  + Replace hellanzb with sabnzbdplus in Enhances.
  + Update Description.
* debian/copyright:
  + Make it machine-interpretable according to DEP-5.
  + Remove information for Kiwi code.
  + Update information for help/*.
  + Add information for lottanzb/backend/interface/multipart_post_handler.py.
* debian/lottanzb.lintian-overrides:
  + Override extra-license-file warning for documentation files.
* debian/lottanzb.menu:
  + Update application title.
* debian/patches/lock-file-name.patch:
  + Delete because fixed upstream.
* debian/rules:
  + Install into private directory /usr/share/lottanzb.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2010-2011 LottaNZB Development Team
 
2
 
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.
 
6
 
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.
 
11
 
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.
 
15
 
 
16
import gobject
 
17
 
 
18
from lottanzb.util.gtk_extras import gtk_lock
 
19
from lottanzb.gui.framework import MainDelegateComponent
 
20
 
 
21
class Dialog(MainDelegateComponent):
 
22
    builder_file = "restart_dialog"
 
23
    unloaded = False
 
24
    
 
25
    def create_ui(self):
 
26
        gobject.timeout_add(40, self.on_progress_timeout)
 
27
    
 
28
    def on_progress_timeout(self):
 
29
        with gtk_lock:
 
30
            self.progress.pulse()
 
31
        
 
32
        return not self.unloaded
 
33
        
 
34
    def on_unload(self):
 
35
        self.unloaded = True
 
36
        
 
37
        MainDelegateComponent.on_unload(self)