diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-11-02 16:21:00 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-11-02 16:21:00 (GMT) |
commit | a6503b8bd8092112323f06c5ab29337a01753597 (patch) | |
tree | 47d8b91d40fd85aad1cc66716da7ccfa8e32b2e8 /services/nm/bubble.py | |
parent | 23565cfd483e38d3a64cd5980deea47cccb28581 (diff) | |
parent | 26b04db5e3bb803d96f0d3e42b8048d49c7c8486 (diff) |
Merge branch 'master' of git://dev.laptop.org/sugar
Diffstat (limited to 'services/nm/bubble.py')
-rw-r--r-- | services/nm/bubble.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/nm/bubble.py b/services/nm/bubble.py index 52710a6..24e68ab 100644 --- a/services/nm/bubble.py +++ b/services/nm/bubble.py @@ -103,7 +103,8 @@ class Bubble(hippo.CanvasBox, hippo.CanvasItem): cr.set_line_width(line_width) cr.stroke(); - self._paint_progress_bar(cr, x, y, width, height, line_width) + if self._percent > 0: + self._paint_progress_bar(cr, x, y, width, height, line_width) def _paint_progress_bar(self, cr, x, y, width, height, line_width): prog_x = x + line_width |