[Dextrose] [PATCH v3] Reduction in the time taken for loading of the menu (SL#1169)

Manusheel Gupta manu at seeta.in
Tue Oct 26 20:35:58 EDT 2010


Bernie and Sascha,

Are we ready to commit this patch?

Manu

On Fri, Oct 22, 2010 at 12:56 AM, <shanjit at seeta.in> wrote:

> From: Shanjit Singh Jajmann <shanjit at seeta.in>
>
> Reduction in the lead time for loading the drop down menus. Changes made in
> the time delay for rendering of the secondary palette to improve human
> computer interaction and experience.
>
> Co-authored-by: Frederick Grose <fgrose at sugarlabs.org>
> Reviewed-by: Bernie Innocenti <bernie at codewiz.org>
> ---
>
> v1 -> v2 : Since the time 0.0, was too short for comfortable viewing,
> arguments have been modified suitably to bring in a smooth pop-up and
> pop-down
> feature. Suggestions taken from SL#2367.
>
> v2 -> v3 : Position of changelog changed and text wrapping done.
>
>  src/sugar/graphics/palette.py       |    2 +-
>  src/sugar/graphics/palettewindow.py |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py
> index d4f844c..5be8304 100644
> --- a/src/sugar/graphics/palette.py
> +++ b/src/sugar/graphics/palette.py
> @@ -103,7 +103,7 @@ class Palette(PaletteWindow):
>
>         self._menu_content_separator = gtk.HSeparator()
>
> -        self._secondary_anim = animator.Animator(2.0, 10)
> +        self._secondary_anim = animator.Animator(1.0, 10)
>         self._secondary_anim.add(_SecondaryAnimation(self))
>
>         # we init after initializing all of our containers
> diff --git a/src/sugar/graphics/palettewindow.py
> b/src/sugar/graphics/palettewindow.py
> index f51c938..4f19e0d 100644
> --- a/src/sugar/graphics/palettewindow.py
> +++ b/src/sugar/graphics/palettewindow.py
> @@ -148,7 +148,7 @@ class PaletteWindow(gtk.Window):
>         self._up = False
>         self._old_alloc = None
>
> -        self._popup_anim = animator.Animator(.5, 10)
> +        self._popup_anim = animator.Animator(0.0, 10)
>         self._popup_anim.add(_PopupAnimation(self))
>
>         self._popdown_anim = animator.Animator(0.6, 10)
> --
> 1.7.2.2
>
> _______________________________________________
> Dextrose mailing list
> Dextrose at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/dextrose
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/dextrose/attachments/20101027/528a9f29/attachment.html>


More information about the Dextrose mailing list