[Sugar-devel] [PATCH] sl#1504: preserve zoom while rotating

Aleksey Lim alsroot at member.fsf.org
Wed Dec 22 00:51:37 EST 2010


On Tue, Dec 21, 2010 at 09:40:30PM +0530, Mukesh Gupta wrote:
> Earlier image used to go down to its original size while rotating .This patch
> will keep zoom factor into account while rotating
> 
> Signed-off-by: Mukesh Gupta <mukeshgupta.2006 at gmail.com>
> ---
>  ImageView.py |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/ImageView.py b/ImageView.py
> index bdaa458..30d94d5 100644
> --- a/ImageView.py
> +++ b/ImageView.py
> @@ -200,6 +200,7 @@ class ImageViewer(gtk.DrawingArea):
>              pass
>              
>          self._temp_pixbuf = self.pixbuf.rotate_simple(rotate)
> +        self.set_zoom(self.zoom)
>          if self._optimal_zoom_flag == True:
>              self.zoom = self.calculate_optimal_zoom(pixbuf = self._temp_pixbuf)
>          
> -- 
> 1.7.1

Thanks, pushed (I've stepped in as an ImageViewer maint).

I've also added HACKING file (that is regular FOSS practice)
(http://git.sugarlabs.org/imageviewer/mainline/blobs/master/HACKING)
with info about how to contribute to the project.

-- 
Aleksey


More information about the Sugar-devel mailing list