Re: [gtk-list] Redrawing an Object?



>>>>> "Jeff" == Jeff Clement <jclement@mindless.com> writes:

    Jeff> Hi, I just started out with GTK+ and have been reading
    Jeff> through the tutorial but have a question.  I have a Pixmap
    Jeff> in a button in a table in a window.  Now my problem is I
    Jeff> need the Pixmap to change.  I've tried gtk_container_add
    Jeff> (button, newpixmap) but this doesn't redraw.  Is there a way
    Jeff> to force redraw.  Also, does anyone know how to do a wait
    Jeff> retrace ( for flicker free graphics ) or a similar function.
    Jeff> Thanks in Advance
You can change the contents of your pixmap widget with
gtk_pixmap_set (GTK_PIXMAP (pixmap_widget), pixmap, mask);

Ullrich
-- 
Ullrich Hafner           <hafner@informatik.uni-wuerzburg.de>
Department of Computer Science, University Wuerzburg, Germany
URL:  http://www-info2.informatik.uni-wuerzburg.de/staff/ulli



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]