[Sugar-devel] [PATCH sugar] Make sure the entry has the right color when copying from external device to Journal SL #2690

Simon Schampijer simon at schampijer.de
Fri Jun 3 06:42:02 EDT 2011


On 06/03/2011 12:38 PM, Simon Schampijer wrote:
> The patch does make sure that the color of the entry has the owner's color when you copy
> it from an external device to the Journal. It handles the case where when you copy a Journal
> entry from another user on an external device and then into your Journal cleanly.
> The color stays the same.
> ---
>   src/jarabe/journal/model.py |    5 +++++
>   1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/src/jarabe/journal/model.py b/src/jarabe/journal/model.py
> index fd25681..b246abb 100644
> --- a/src/jarabe/journal/model.py
> +++ b/src/jarabe/journal/model.py
> @@ -30,10 +30,12 @@ from gettext import gettext as _
>   import gobject
>   import dbus
>   import gio
> +import gconf
>
>   from sugar import dispatch
>   from sugar import mime
>   from sugar import util
> +from sugar.graphics.xocolor import XoColor

Actually, this import is not needed. rest stays the same.

Regards,
    Simon


More information about the Sugar-devel mailing list