Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2006-11-01 19:25:31 (GMT)
committer Dan Williams <dcbw@redhat.com>2006-11-01 19:25:31 (GMT)
commita8fda48c7292b8109fde3b43fd552a192715fa42 (patch)
treea429a4779ad4b508062a08962e3aae35e91accb2 /services
parentcf508c1d229df5f4f645b7a66d568c1959bc6f62 (diff)
Don't draw progress bar when % is 0
Diffstat (limited to 'services')
-rw-r--r--services/nm/bubble.py3
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