[Sugar-devel] [PATCH calculate] Remove dependency on CanvasIcon

Sascha Silbe silbe at activitycentral.com
Mon Nov 14 15:59:11 EST 2011


The code that used CanvasIcon was commented out in 2007 already.

Signed-off-by: Sascha Silbe <silbe at activitycentral.com>
---
 calculate.py |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/calculate.py b/calculate.py
index 91cf276..5b45698 100644
--- a/calculate.py
+++ b/calculate.py
@@ -36,7 +36,6 @@ import base64
 
 from sugar.activity import activity
 import sugar.profile
-from sugar.graphics.icon import CanvasIcon
 from sugar.graphics.xocolor import XoColor
 
 from shareable_activity import ShareableActivity
@@ -330,10 +329,6 @@ class Calculate(ShareableActivity):
         self.connect("key_press_event", self.keypress_cb)
         self.connect("destroy", self.cleanup_cb)
         self.color = sugar.profile.get_color()
-##        self.icon = CanvasIcon(
-##            icon_name = 'theme:stock-buddy',
-##            xo_color = XoColor(self.color))     
-
         self.layout = CalcLayout(self)
         self.label_entry = self.layout.label_entry
         self.text_entry = self.layout.text_entry
-- 
1.7.6.3



More information about the Sugar-devel mailing list