[Glade-users] Glade 2.0.0 & Anjuta: Custom pixmaps

Damon Chaplin damon@karuna.uklinux.net
26 Nov 2003 16:38:45 +0000


On Wed, 2003-11-26 at 00:32, Ed Rayne wrote:
> > Check the pixmap files were installed, probably into somewhere like:
> >  /usr/local/share/pixmaps/project33
> 
> > Does it output "WARNING **: Couldn't find pixmap file" when you run it?
> 
> I've just tested it in a fresh project and it still doesn't work. My
> pixmaps are imported into the pixmaps directory and when I "make
> install" they get copied into PREFIX/share/pixmaps/bluephone but when I
> run the program I get the following errors:
>  
> (bluephone:8422): Gnome-WARNING **: gnome-program.c:986: Directory
> properties not set correctly.  Cannot locate application specific files.

This is the problem.

In main.c, there should be a call to gnome_program_init() like this:

  gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE,
                      argc, argv,
                      GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR,
                      NULL);
 
That sets the GNOME_PARAM_APP_DATADIR property which is used to find
pixmaps later. Is this being set in your app?

Damon