Re: Range patchlet
- From: Owen Taylor <otaylor redhat com>
- To: Bill Haneman <bill haneman sun com>
- Cc: Tim Janik <timj gtk org>, Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: Range patchlet
- Date: Thu, 24 Jan 2002 11:39:07 -0500 (EST)
Bill Haneman <bill haneman sun com> writes:
> Owen Taylor wrote:
> >
> > Bill Haneman <bill haneman sun com> writes:
> >
> > > Owen Taylor wrote:
> > > >
> > > > Tim Janik <timj gtk org> writes:
> > > >
> > > > > On Thu, 24 Jan 2002, Bill Haneman wrote:
> > > > >
> > > > > > Hi:
> > > > > >
> > > > > > Here is a two-line patch that fixes a small bug in the gtkrange focus
> > > > > > drawing - note that without this patch, the focus indication is only
> > > > > > visible on the left and top edges, and is clipped out of the right and
> > > > > > bottom edges. With this patch the focus indication is contained
> > > > > > correctly inside the slider rectangle.
> > > > > >
> > > > > > OK to commit ?
> > > > >
> > > > > yep thanks, this is the standard off-by-one error with width/height.
> > > >
> > > > Actually, when support for wide focus indicators was added, we changed the
> > > > interpretation of the rectangle passed to paint_focus; from Changes-2.0:
> > > >
> > > > The rectangle passed in is the bounding box, instead of
> > > > the rectangle used in the <function>gdk_draw_rectangle()</function> call,
> > > > so it is no longer necessary to subtract 1 from the width and height.
> > >
> > > Hmm, that may be so, but the patch still fixes the visible bug. Perhaps
> > > a better fix would modify the are rectangle? Note that the rectangle is
> > > obtained from a gdk_rectangle_intersect() call on range_rect (and
> > > expose).
> > >
> > > So maybe the real offbyone error is somewhere else...
> > >
> > > (however the patch is in already, so a further fix would have no visible
> > > impact I think).
> >
> > You are confusing me further:
> >
> > - I don't see any problems, _without_ this patch.
>
> The default range focus line does not go all the way around the
> range trough, as I documented in the email to the list.
I can't reproduce this. (With a scale, or if I explicitely make
a scrollbar focusable.)
> > - This patch _is not_ in...
>
> I checked it in on Tim's OK awhile ago.
Into what repository? :-)
$ cvs status gtkrange.c
===================================================================
File: gtkrange.c Status: Up-to-date
Working revision: 1.74
Repository revision: 1.74 /cvs/gnome/gtk+/gtk/gtkrange.c,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)
$ cvs annotate gtkrange.c
1.71 (owen 04-Dec-01): gtk_paint_focus (widget->style, widget->window, GTK_WIDGET_STATE (widget),
1.54 (hp 04-Jun-01): &area, widget, "trough",
1.67 (owen 15-Nov-01): widget->allocation.x + range->range_rect.x,
1.67 (owen 15-Nov-01): widget->allocation.y + range->range_rect.y,
1.54 (hp 04-Jun-01): range->range_rect.width,
1.54 (hp 04-Jun-01): range->range_rect.height);
The last change to gtkrange was a fix from Tim on 9 January.
Perhaps your commit failed due to a conflict or something?
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]