~ubuntu-branches/ubuntu/precise/bzr-gtk/precise

« back to all changes in this revision

Viewing changes to debian/patches/03-ghost-window.dpatch

  • Committer: Chris Lamb
  • Date: 2008-05-01 11:41:35 UTC
  • mto: (0.15.47 debian)
  • mto: This revision was merged to the branch mainline in revision 622.
  • Revision ID: chris@chris-lamb.co.uk-20080501114135-be61o5kpepoblqm2
Move to debian/ -style RCS packaging

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 03-ghost-window.dpatch by Jean-François Fortin Tam <jeff@ecchi.ca>.
 
3
##
 
4
## DP: Fixes Debian bug #440354 and Launchpad bug 127531.
 
5
## DP: Patch by Jean-François Fortin Tam <jeff@ecchi.ca>
 
6
 
 
7
@DPATCH@
 
8
diff -urNad bzr-gtk~/ui.py bzr-gtk/ui.py
 
9
--- bzr-gtk~/ui.py      2007-12-18 22:05:21.000000000 +0000
 
10
+++ bzr-gtk/ui.py       2007-12-18 22:06:08.000000000 +0000
 
11
@@ -85,6 +85,8 @@
 
12
 
 
13
     def remove(self, pb):
 
14
         self.vbox.remove(pb)
 
15
+        if len(self.vbox.get_children()) == 0: # If there is nothing to show, don't leave a ghost window here
 
16
+             self.destroy()
 
17
 
 
18
 
 
19
 class PasswordDialog(gtk.Dialog):