Rename IconColor to XoColor.
This commit is contained in:
@@ -26,7 +26,7 @@ from sugar.presence import PresenceService
|
||||
from sugar.activity.Activity import Activity
|
||||
from sugar.chat.sketchpad import SketchPad
|
||||
from sugar.chat.sketchpad import Sketch
|
||||
from sugar.graphics.iconcolor import IconColor
|
||||
from sugar.graphics.xocolor import XoColor
|
||||
from sugar import profile
|
||||
|
||||
class NetworkController(gobject.GObject):
|
||||
@@ -150,7 +150,7 @@ class SharedSketchPad(SketchPad.SketchPad):
|
||||
str_color = buddy.get_color()
|
||||
if not str_color:
|
||||
str_color = "#348798" # FIXME
|
||||
color = IconColor(str_color)
|
||||
color = XoColor(str_color)
|
||||
stroke_color = _html_to_rgb_color(color.get_stroke_color())
|
||||
sketch = Sketch.Sketch(stroke_color)
|
||||
for item in path:
|
||||
|
||||
@@ -28,18 +28,18 @@ import hippo
|
||||
|
||||
from sugar.graphics.snowflakebox import SnowflakeBox
|
||||
from sugar.graphics.spreadbox import SpreadBox
|
||||
from sugar.graphics.iconcolor import IconColor
|
||||
from sugar.graphics.xocolor import XoColor
|
||||
from sugar.graphics.canvasicon import CanvasIcon
|
||||
|
||||
def _create_snowflake(parent, children):
|
||||
color = IconColor()
|
||||
color = XoColor()
|
||||
icon = CanvasIcon(size=40, color=color,
|
||||
icon_name='activity-groupchat')
|
||||
parent.append(icon, hippo.PACK_FIXED)
|
||||
parent.set_root(icon)
|
||||
|
||||
for i in range(0, children):
|
||||
color = IconColor()
|
||||
color = XoColor()
|
||||
icon = CanvasIcon(size=60, color=color,
|
||||
icon_name='stock-buddy')
|
||||
parent.append(icon, hippo.PACK_FIXED)
|
||||
|
||||
@@ -27,11 +27,11 @@ import gtk
|
||||
import hippo
|
||||
|
||||
from sugar.graphics.spreadbox import SpreadBox
|
||||
from sugar.graphics.iconcolor import IconColor
|
||||
from sugar.graphics.xocolor import XoColor
|
||||
from sugar.graphics.canvasicon import CanvasIcon
|
||||
|
||||
def _create_icon():
|
||||
color = IconColor()
|
||||
color = XoColor()
|
||||
|
||||
icon = CanvasIcon(size=100, color=color,
|
||||
icon_name='stock-buddy')
|
||||
|
||||
Reference in New Issue
Block a user