[Glade-users] GtkImage

Gedeon Legaut gedeon.legaut at tele2.fr
Tue Jul 25 12:33:48 EDT 2006


Hello,

In my main.c file, I get
	add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");

In my interface.c file, I create a GtkImage with
	image_logo = create_pixmap (window_main, "logo.png");
	gtk_widget_show (image_logo);
	gtk_box_pack_start (GTK_BOX (vbox2), image_logo, TRUE, TRUE, 0);

But when I run my program for the first time, I get the following error
message in a terminal

** (myprog:12344): WARNING **: Couldn't find pixmap file: logo.png

I get the same error message if I put "pixmaps/logo.png" in interface.c.
When I clicked on a checkbutton, I can change the image displayed in the
GtkImage, but the first time I run the program, there is no image
displayed, not even the broken image icon.

An idea ?

Thanks
Gédéon


More information about the Glade-users mailing list