Re: GtkImage



If you use glade, then after loading the interface, the widget has already
been created for you. There is therefore no need to generate another image
widget through a call to gtk_image_new_from_file() and you should use
gtk_image_set_from_file instead:

GtkWidget *image = ...*get widget pointer from libglade* ...();
gtk_image_set_from_file(image, "image.bmp")

How to get the widget pointer from libglade is left as an exercise for the
reader. (A bad excuse for saying that I am too lazy to look it up. :-)

Regards,
Dov

2009/1/27 frederico schardong <frede sch gmail com>

Hello,

I was created a space for image on glade-3, and I'm trying to link
some imagem to this space.

GtkWidget space;

space = gtk_image_new_from_file("image.bmp");

only this?

the image will rezise itself to the space dimensions?
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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