Newbie: gtk_image_new_from_file help please.



Hello All,

Sorry for what is such a simple question but I have only just started
learning (or not learning :) to program. Currently I am experimenting
with glade.

My sample program I want to do nothing more than have a gnome file
selector, a button and an image display area. The buttons selects a
callback function which should update the image area with the selected
image.

GtkWidget *image1;
image1 = gtk_image_new_from_file(fileentered);

I expected this to automatically update the Image Area. But it does not
seem to do so. There are no error message when compiling or running the
program.

Could someone please tell me how to make the image area update / redraw
?

I've tried reading the documentation and it may well answer my question,
but if so I don't understand it.

Thank you for your time and any assistance.

Douglas
-- 
douglas a mcintosh NOSPAMlineone net	#	www.dougmcintosh.co.uk
douglasmcintosh<at>dsl<dot>pipex<dot>com # 	www.leemountbc.org.uk
www.mentalnurse.org.uk	
Public Key From Homepage




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