GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[solved]overwriting a image in a box

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
Ossi
Familiar Face


Joined: 09 Sep 2008
Posts: 44
Location: Aalborg, Denmark

PostPosted: Thu Sep 11, 2008 1:04 pm    Post subject: [solved]overwriting a image in a box Reply with quote

Hi all.

How can I overwrite a image with another image, which is placed in a vbox?

My app. starts with image x, and later i want to replace image x with image y. How do I do that?

\Ossi
Back to top
Ossi
Familiar Face


Joined: 09 Sep 2008
Posts: 44
Location: Aalborg, Denmark

PostPosted: Thu Sep 11, 2008 2:55 pm    Post subject: Reply with quote

I used gtk_container_remove() to remove the old image and then load the new image and pack it to the box...
Back to top
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 643
Location: Falun, WI USA

PostPosted: Thu Sep 11, 2008 3:14 pm    Post subject: Reply with quote

you can also use gtk_image_set_from_file
http://library.gnome.org/devel/gtk/stable/GtkImage.html#gtk-image-set-from-file
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP