Relativize bubble radius to screen proportions.

This commit is contained in:
Tomeu Vizoso 2007-03-28 20:23:51 +02:00
parent 9d5fa10868
commit 2e73999004

View File

@ -23,6 +23,8 @@ import gobject
import gtk
import hippo
from sugar.graphics import units
class ClipboardBubble(hippo.CanvasBox, hippo.CanvasItem):
__gtype_name__ = 'ClipboardBubble'
@ -42,7 +44,7 @@ class ClipboardBubble(hippo.CanvasBox, hippo.CanvasItem):
self._fill_color = 0xFFFFFFFF
self._progress_color = 0x000000FF
self._percent = 0
self._radius = 8
self._radius = units.points_to_pixels(3)
hippo.CanvasBox.__init__(self, **kwargs)