Re: GtkHBox child replacement
- From: Michael Cronenworth <mike cchtml com>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkHBox child replacement
- Date: Wed, 24 Oct 2012 16:17:11 -0500
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]