Re: help me!
- From: John Cupitt <john cupitt ng-london org uk>
- To: Manoj tr <trmanoj linuxmail org>
- Cc: gtk <gtk-app-devel-list gnome org>
- Subject: Re: help me!
- Date: Thu, 29 Jan 2004 19:33:02 +0000
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]