GNOME Bugzilla – Bug 93287
Program::locate_file uses GnomeFileDomain which is a C enum
Last modified: 2011-01-16 23:40:36 UTC
The function Glib::ustring locate_file(GnomeFileDomain domain, const Glib::ustring& file_name, bool only_if_exists = true); from .../include/libgnomemm-2.0/libgnomemm/program.h uses a C enum. It should be Gnome::FileDomain. This prevents my app from getting to the pixmap complete path so I can load it with Gtk::Image
Fixed in CVS.
I have tried gnomemm 1.3.10 when I try to use it: cout << "PIX= " << Gnome::Program::get()->locate_file(Gnome::FILE_DOMAIN_APP_PIXMAP, "pixmap_open.png") << endl; at runtime I get: gnome-program.c:986:gnome_program_locate_file(): Directory properties not set correctly. Cannot locate application specific files. PIX= Anyway, the problem was about the C enum, that is solved. I'm using a -DPIXMAPS_DIR=/path/to/pixmaps at compile time, so I won't investigate further.