[hamster-applet/gnome-2-30] escaped the fact and category name in FactTree.update_longest_dimensions
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet/gnome-2-30] escaped the fact and category name in FactTree.update_longest_dimensions
- Date: Sat, 17 Apr 2010 12:54:28 +0000 (UTC)
commit af0babdf87c93c4e6ba62351c30a55407b5cebfc
Author: Mjumbe Wawatu Ukweli <mjumbewu gmail com>
Date: Fri Apr 16 20:02:58 2010 -0400
escaped the fact and category name in FactTree.update_longest_dimensions
src/hamster/widgets/facttree.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/hamster/widgets/facttree.py b/src/hamster/widgets/facttree.py
index a2ff24d..836c643 100644
--- a/src/hamster/widgets/facttree.py
+++ b/src/hamster/widgets/facttree.py
@@ -119,7 +119,7 @@ class FactTree(gtk.TreeView):
self.longest_interval = max(self.longest_interval, w + 20)
- self._test_layout.set_markup("%s - <small>%s</small> " % (fact["name"], fact["category"]))
+ self._test_layout.set_markup("%s - <small>%s</small> " % (stuff.escape_pango(fact["name"]), stuff.escape_pango(fact["category"])))
w, h = self._test_layout.get_pixel_size()
self.longest_activity_category = max(self.longest_activity_category, w + 10)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]