Re: GtkDrawingArea mouse events

2007-01-20 Thread Yann Renard
Jim George wrote: > My program has a GtkDrawingArea in a resizable window. The drawing > area needs a 2D array of integers, sized so that there is 1 integer > per pixel. When the user moves his mouse over the DrawingArea, I want > the program status bar to show the value from the array correspondin

Re: GtkDrawingArea mouse events

2007-01-17 Thread John Cupitt
On 1/17/07, Jim George <[EMAIL PROTECTED]> wrote: > 1) I am currently trapping the "configure-event" signal and resizing > the array there. Is this the best approach? In my past life, I used to Yes, this is correct. > 2) I had a bug in my program in which I would occasionally get a mouse > cursor

GtkDrawingArea mouse events

2007-01-17 Thread Jim George
My program has a GtkDrawingArea in a resizable window. The drawing area needs a 2D array of integers, sized so that there is 1 integer per pixel. When the user moves his mouse over the DrawingArea, I want the program status bar to show the value from the array corresponding to the pixel under the m