Re: Displaying Image



H McCurdy wrote:
I know how to write code to display an image in 1.2. But I'm trying to migrate the program to 2.x and can't
find any relevant documentation.  The tutorial says
"undocumented" and the FAQ is empty.

Try the API reference:

 http://developer.gnome.org/doc/API/2.0/gtk/GtkImage.html

The code you need is listed:

 GtkWidget *image = gtk_image_new_from_file ("myfile.png");

John



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