From a8fda48c7292b8109fde3b43fd552a192715fa42 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 1 Nov 2006 14:25:31 -0500 Subject: [PATCH] Don't draw progress bar when % is 0 --- services/nm/bubble.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/nm/bubble.py b/services/nm/bubble.py index 52710a6e..24e68aba 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