[Sugar-devel] [PATCH read] Adopt to removal of the old toolbar

Gonzalo Odiard gonzalo at laptop.org
Thu Jan 12 10:57:54 EST 2012


Thanks, pushed.

Gonzalo

On Thu, Jan 12, 2012 at 10:27 AM, Simon Schampijer <simon at schampijer.de>wrote:

> As part of the removal of the old toolbar, old API has been removed,
> adopt to that change, see
> http://lists.sugarlabs.org/archive/sugar-devel/2012-January/035201.html
>
> Signed-off-by: Simon Schampijer <simon at laptop.org>
> ---
>  readtoolbar.py |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/readtoolbar.py b/readtoolbar.py
> index b52d19c..14b629c 100644
> --- a/readtoolbar.py
> +++ b/readtoolbar.py
> @@ -29,17 +29,17 @@ from sugar3.graphics.toggletoolbutton import
> ToggleToolButton
>  from sugar3.graphics.toolcombobox import ToolComboBox
>  from sugar3.graphics.menuitem import MenuItem
>  from sugar3.graphics import iconentry
> -from sugar3.activity import activity
> +from sugar3.activity.widgets import EditToolbar as BaseEditToolbar
>
>  import speech
>
>
> -class EditToolbar(activity.EditToolbar):
> +class EditToolbar(BaseEditToolbar):
>
>     __gtype_name__ = 'EditToolbar'
>
>     def __init__(self):
> -        activity.EditToolbar.__init__(self)
> +        BaseEditToolbar.__init__(self)
>
>         self._view = None
>
> --
> 1.7.7.5
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120112/ec95f054/attachment-0001.html>


More information about the Sugar-devel mailing list