Re: [PATCH] Fix shift-select in manual icon layout mode
- From: Alexander Larsson <alexl redhat com>
- To: Christian Neumair <chris gnome-de org>
- Cc: nautilus-list gnome org
- Subject: Re: [PATCH] Fix shift-select in manual icon layout mode
- Date: Wed, 13 Jul 2005 14:09:49 +0200
On Wed, 2005-07-13 at 13:51 +0200, Christian Neumair wrote:
> Am Mittwoch, den 13.07.2005, 13:45 +0200 schrieb Alexander Larsson:
> > On Tue, 2005-07-12 at 18:19 +0200, Christian Neumair wrote:
> > > From bug 150116 [1]:
> > >
> > > "When trying to select a range of files if ordering is set to manual,
> > > the range of files is determined by file names instead of spatial
> > > location.
> > >
> > > This is especially obvious on the desktop where there is no auto-sort."
> > >
> > > Proposed patch attached. If you don't like the two separate code-paths
> > > mangled into one function (like classic C coders do), we can also split
> > > these two loops out into separate functions.
> > >
> > > [1] http://bugzilla.gnome.org/show_bug.cgi?id=150116
> > >
> >
> > + x0 = MIN (icon1->x, icon2->x);
> > + x1 = MAX (icon1->x, icon2->x);
> > + y0 = MIN (icon1->y, icon2->y);
> > + y1 = MAX (icon1->y, icon2->y);
> >
> > This doesn't look entierly right. Surely you want the whole part of the
> > icons, not just its position (which i think is the corner? don't
> > remember exactly).
>
> Yes, as far as I know it's the upper-left corner. What's wrong with it?
> You think we should also select items which just "touch"/intersect the
> range to be selected instead of matching only those that are actually
> contained within the range?
consider this case:
a
bc
where b and c really overlap vertically, except c is one pixel above b.
Now, range select on a-c will not select b, even though its basically
beside it to the left. Maybe a better approach would to pick positions
in the middle of a and c and pick any icons that intersect that.
> > Also, this is sort of a strange range sort. Its more of a rectangle
> > selection. Maybe its better than what we have for the manual sort case
> > though.
>
> Well, we could do a wrapping selection based on the position of the
> items as well, which would also take into account the
> NautilusIconLayoutMode. You're the boss.
I don't think its a very important issue, as long as we do better than
we do now.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's an uncontrollable Amish gentleman spy on the hunt for the last specimen
of a great and near-mythical creature. She's a green-fingered impetuous
wrestler married to the Mob. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]