Re: [PATCH] Use GtkIconChooser for properties window
- From: Alexander Larsson <alexl redhat com>
- To: Christian Neumair <chris gnome-de org>
- Cc: nautilus-list gnome org
- Subject: Re: [PATCH] Use GtkIconChooser for properties window
- Date: Mon, 14 Nov 2005 16:13:03 +0100
On Tue, 2005-11-01 at 15:04 +0100, Christian Neumair wrote:
> Am Dienstag, den 01.11.2005, 09:51 +0100 schrieb Alexander Larsson:
> > On Tue, 2005-11-01 at 02:58 +0100, Christian Neumair wrote:
> > > Am Montag, den 31.10.2005, 09:45 +0100 schrieb Alexander Larsson:
> > > > On Fri, 2005-10-28 at 14:15 +0200, Christian Neumair wrote:
> > > > > Am Dienstag, den 18.10.2005, 14:16 +0200 schrieb Alexander Larsson:
> > > > > > I like this, but I really think its a real regression from the current
> > > > > > dialog that you can't see the icon files while choosing. Choosing an
> > > > > > image by name is just not a very good way.
> > > > > >
> > > > > > How did it look with a preview?
> > > > >
> > > > > The problem is that the dialog size goes crazy when the selected icon is
> > > > > very big. It can easily happen that it gets 1200 px wide or more if you
> > > > > accidentally select an image with a big width, for instance a high
> > > > > resolution photo.
> > > >
> > > > Surely you show a scaled down version of the image, not the full image.
> > >
> > > Yes, but for small images, you want to show the full version. I wonder
> > > whether there are any well-known algorithms available. Should we simply
> > > clamp between two widths, should we consult the screen width for the
> > > max. boundary?
> >
> > Just pick a size for the preview widget, say 96x96 (which incidentally
> > is the thumbnail size nautilus uses). Then scale down all images that
> > don't fit, keeping the aspect ratio. For files smaller than the picked
> > size, center them in the widget.
> >
> > Make sure you use gnome_thumbnail_scale_down_pixbuf() to scale down (at
> > least for large images). The normal pixbuf functions are very slow when
> > you scale down large amounts.
>
> Better?
Looks nice.
+ scale = gdk_pixbuf_get_height (pixbuf) /
+ gdk_pixbuf_get_width (pixbuf);
+
This is an integer division. I fixed it to be a float and commited the
patch. Thanks.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a fast talking Republican cyborg living undercover at Ringling Bros.
Circus. She's a wealthy extravagent museum curator from a secret island of
warrior women. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]