Re: refreshing a drawing area when a spinbutton is used.
- From: TORRI Vincent <Vincent Torri math u-bordeaux fr>
- To: Chris Garrett <garrett91 hotmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: refreshing a drawing area when a spinbutton is used.
- Date: Thu, 28 Nov 2002 16:24:24 +0100 (CET)
On Thu, 28 Nov 2002, Chris Garrett wrote:
Hi,
I have created a GtkWindow, with a horizontal box in it. In the first cell
of the box, there is a drawing area containing one pixbuf. In the second
cell there is a spinbutton.
The pixbuf is to be used as a brush (This window is a preview of the brush),
the size of which is dictated by the spinbutton.
I have successfully connected a signal to the spin button so that the brush
size is changed and the pixbuf is redrawn appropriately. However, I cannot
seem to get the drawing area to refresh.
The expose event on the drawing area is working fine - I can move the window
behind another, and when I bring it back to the front, the new brush is
shown. I need it to do this as soon as a value is changed on the
spinbutton, however.
How do I get the spinbutton to generate an expose event or tell the drawing
area to refresh itself?
you can try
void gtk_widget_queue_draw_area (GtkWidget *widget, gint x, gint y, gint
width, gint height);
to force the "expose-event" to be emitted.
regards
Vincent TORRI
Best regards,
Chris.
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
TORRI Vincent
Mathematiques Appliquees Bordeaux
Institut de Mathematiques
Universite Bordeaux 1
351 cours de la liberation
33 405 Talence cedex - France
Tel : 33 (0)5 57 96 21 42
Fax : 33 (0)5 56 84 26 26
--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]