GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Apr 19, 2014 2:33 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: GTK Composite image change on timeout
PostPosted: Tue May 21, 2013 6:52 pm 
Offline

Joined: Fri May 17, 2013 9:07 am
Posts: 1
hey wondering if you can help: I have the code: http://pastebin.mozilla.org/2427829 and want it to change an image depending on the polled input - ran by a timeout. the problem is that the image does not change - I have based this on some working code that works with just gtk images http://pastebin.mozilla.org/2427832 can you help me!?

thanks


Top
 Profile  
 
 Post subject: Re: GTK Composite image change on timeout
PostPosted: Wed May 22, 2013 7:40 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 709
Location: UK
Hi,

In your example gdk_pixbuf_composite() does a transformation of an image. This image is not used any where therefore you do not see any change. GtkImage has its own references to images and does not use your own ones.

If you want to change the image of your GtkImage you need to use one of the gtk_image_set_from_*() functions. So in your case you probably need gtk_image_set_from_pixbuf().

_________________
E.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group