Set property types as object so strings are not copied

This commit is contained in:
Tomeu Vizoso 2009-01-04 12:05:27 +01:00
parent fd078d2f66
commit 53533be524

View File

@ -534,7 +534,7 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem):
return self._buffer.file_name return self._buffer.file_name
file_name = gobject.property( file_name = gobject.property(
type=str, getter=get_file_name, setter=set_file_name) type=object, getter=get_file_name, setter=set_file_name)
def set_icon_name(self, value): def set_icon_name(self, value):
""" """
@ -565,7 +565,7 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem):
return self._buffer.icon_name return self._buffer.icon_name
icon_name = gobject.property( icon_name = gobject.property(
type=str, getter=get_icon_name, setter=set_icon_name) type=object, getter=get_icon_name, setter=set_icon_name)
def set_xo_color(self, value): def set_xo_color(self, value):
""" """
@ -770,7 +770,7 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem):
return self._buffer.badge_name return self._buffer.badge_name
badge_name = gobject.property( badge_name = gobject.property(
type=str, getter=get_badge_name, setter=set_badge_name) type=object, getter=get_badge_name, setter=set_badge_name)
def do_paint_below_children(self, cr, damaged_box): def do_paint_below_children(self, cr, damaged_box):
""" """