Re: help me!



Hi Manoj,

Manoj tr wrote:
I want a small help in gtk. The problem is i cand draw that image with the following code

You need to use a GtkImage widget instead.
 http://developer.gnome.org/doc/API/2.0/gtk/GtkImage.html

Try:

 GtkWidget *window;
 GtkWidget *image;

 ...
 window = gtk_window_new( GTK_WINDOW_TOPLEVEL );
 image = gtk_image_new_from_file( "mandir_n.png" );
 gtk_container_add( GTK_CONTAINER( window ), image );
 gtk_widget_show_all( window );
 ...

John




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