[Glade-users] gtk_image......... Change image on existing window
- From: c.morey48 at hotmail.com (carl morey)
- Subject: [Glade-users] gtk_image......... Change image on existing window
- Date: Wed, 15 Jul 2009 15:25:21 +0930
Thanks a lot.
It works no delay and no flicker.
I should have gone through the list of all the functions, but when learning
it's hard with so many to find what your looking for.
Date: Tue, 14 Jul 2009 17:02:31 +0200
Subject: Re: [Glade-users] gtk_image......... Change image on existing window
From: gabriele.greco at darts.it
To: c.morey48 at hotmail.com
CC: glade-users at lists.ximian.com
Displays the image on the window no problems...Now I want to change the image from a new file.
In a button click event I try:
image1 = gtk_image_new_from_file("copy.bmp");
gtk_widget_show (image1); ...............No sign of any new image.
In your click event use:
gtk_image_set_from_file(image1, "copy.bmp");
where "image1" is a pointer to the same object you declared when you built the window.
--
Bye,
Gabry
_________________________________________________________________
View photos of singles in your area Click Here
http://dating.ninemsn.com.au/search/search.aspx?exec=go&tp=q&gc=2&tr=1&lage=18&uage=55&cl=14&sl=0&dist=50&po=1&do=2&trackingid=1046138&r2s=1&_t=773166090&_r=WLM_EndText
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20090715/16cda428/attachment.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]