On Wed, 31 Mar 1999, Philip Blundell wrote:
> >Oops, I forgot to put gtkcolorsel.c on my web server.
>
> Can you mail me a .i file that shows the bug?
Should be on its way momentarily. Also available at,
http://www.bluebutton.com/jamie/gtk/gtkcolorsel.i.gz
it anyone else wants to take a gander.
Compiling it with,
$ gcc -g -O2 -Wall -c -fPIC -DPIC gtkcolorsel.i -o gtkcolorsel.lo
produces the correct (well, correctly buggy) object file.
Insert this,
printf("w=%d, h=%d\n", w, h);
at line 19236 in the .i file to get the "corrective" behavior.
(See attached "diff -c" output.)
-Jamie
================================================================
Jamie Guinan Blue Button Solutions
[EMAIL PROTECTED] http://www.bluebutton.com
================================================================
*** gtkcolorsel.i Wed Mar 31 07:28:34 1999
--- gtkcolorsel.i2 Wed Mar 31 07:35:07 1999
***************
*** 19233,19239 ****
w = colorsel->wheel_area->allocation.width;
h = colorsel->wheel_area->allocation.height;
!
gdk_draw_arc (colorsel->wheel_area->window, style->black_gc,
(0) , 1, 1, w - 1, h - 1, 30 * 64, 180 * 64);
gdk_draw_arc (colorsel->wheel_area->window, style->mid_gc[GTK_STATE_NORMAL],
--- 19233,19239 ----
w = colorsel->wheel_area->allocation.width;
h = colorsel->wheel_area->allocation.height;
! printf("w=%d, h=%d\n", w, h);
gdk_draw_arc (colorsel->wheel_area->window, style->black_gc,
(0) , 1, 1, w - 1, h - 1, 30 * 64, 180 * 64);
gdk_draw_arc (colorsel->wheel_area->window, style->mid_gc[GTK_STATE_NORMAL],