Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-07-09 21:24:17 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-07-09 21:24:17 (GMT)
commit0589f70b7c91a814cd5db14c5c2857a7203a7f87 (patch)
tree15ed2a411b441136a788b1ed438fe753640a2a08
parent7a2d6eb40dace709298a7b05929ced1a10992dda (diff)
got rid of more hippo stuff we no longer need
-rw-r--r--src/sugar/graphics/icon.py32
1 files changed, 3 insertions, 29 deletions
diff --git a/src/sugar/graphics/icon.py b/src/sugar/graphics/icon.py
index 6b31b81..582ac47 100644
--- a/src/sugar/graphics/icon.py
+++ b/src/sugar/graphics/icon.py
@@ -612,34 +612,13 @@ class CanvasIcon(gtk.EventBox):
self.connect('destroy', self.__destroy_cb)
- def _emit_paint_needed_icon_area(self):
- surface = self._icon._buffer.get_surface()
- if surface:
- rect = self.get_allocation() # hippo only has w, h
- width, height = rect.width, rect.height
- s_width = surface.get_width()
- s_height = surface.get_height()
-
- x = (width - s_width) / 2
- y = (height - s_height) / 2
-
- self.emit_paint_needed(x, y, s_width, s_height)
+ def emit_request_changed(self):
+ # FIXME: Called by favoriteslayout, spreadlayout
+ self.do_expose_event(None)
def do_expose_event(self, event):
self._icon.do_expose_event(event)
- def emit_paint_needed(self, x, y, s_width, s_height):
- # This was a hippo canvas method
- # Pass along repaint request to Icon
- # Should be an event
- self._icon.do_expose_event(None)
-
- def emit_request_changed(self):
- # This was a hippo canvas method
- # Pass along repaint request to Icon
- # Should be an event
- self._icon.do_expose_event(None)
-
def __destroy_cb(self, icon):
if self._palette_invoker is not None:
self._palette_invoker.detach()
@@ -733,11 +712,6 @@ class CanvasIcon(gtk.EventBox):
None
"""
- '''
- if self._icon._buffer.fill_color != value:
- self._icon._buffer.fill_color = value
- self._emit_paint_needed_icon_area()
- '''
self._icon.set_fill_color(value)
def get_fill_color(self):