Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redraw GtkWidget

Tags:

c

gtk

I have a GtkImage that I am manipulating with a GdkPixbuf. When I change it, I need to redraw it to make the changes take effect. Right now I am doing this by hiding and then showing the image. What would be the proper way of doing this?

like image 518
trumank Avatar asked Mar 05 '12 05:03

trumank


1 Answers

gtk_widget_queue_draw() function invalidates the widget area and forces redrawing.

like image 181
Michy Avatar answered Oct 29 '22 19:10

Michy