[hamster-applet/gnome-2-28] fix the warning about label and closed tags and whatnot
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet/gnome-2-28] fix the warning about label and closed tags and whatnot
- Date: Tue, 24 Nov 2009 10:45:55 +0000 (UTC)
commit 963a069d0c6f6e32d86806a356c02c9c2df699bb
Author: Toms Bauģis <toms baugis gmail com>
Date: Tue Nov 24 10:45:47 2009 +0000
fix the warning about label and closed tags and whatnot
hamster/applet.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/hamster/applet.py b/hamster/applet.py
index e52f378..d95aa77 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -126,9 +126,9 @@ class PanelButton(gtk.ToggleButton):
label = "%s\n%s" % (self.activity, self.duration)
else:
label = "%s %s" % (self.activity, self.duration)
-
- label = stuff.escape_pango(label)
- label = '<span gravity=\"south\">' + label + '</span>'
+
+ label = '<span gravity="south">%s</span>' % stuff.escape_pango(label)
+ self.label.set_markup("") #clear - seems to fix the warning
self.label.set_markup(label)
def get_pos(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]