Re: GtkHBox child replacement



Piotr Sipika wrote:
While updating the text inside the label is easy (via
gtk_label_set_text()), what's the best way to update the icon child,
assuming it's a GtkImage and I have an updated GdkPixbuf for a new icon?

You want to call gtk_image_set_from_pixbuf(). Don't forget to call
g_object_unref() on the new GdkPixbuf after each update.



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