Re: refreshing a drawing area when a spinbutton is used.
- From: Tristan Van Berkom <vantr touchtunes com>
- 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 10:32:26 -0500
I think its at the GtkWidget level
(GTK_WIDGET(drawingarea))
something like gtk_widget_queue_draw()
and than your widget will recieve a signal
(expose ?) in the next g_main_loop itteration.
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?
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]