Re: [gnomemm] how should I use Gnome::Program::locate_file?



Dale Hirt wrote:
Since it is a static object, you need to use the get() function to get a
pointer to Gnome::Program:

Gnome::Program::get()->locate_file((GnomeFileDomain)10, "pixmap_open.png")

Thank you Dale, that worked!

or:

Glib::RefPtr<Gnome::Program> ptrProg = Gnome::Program::get();
ptrProg->->locate_file((GnomeFileDomain)10, "pixmap_open.png");

--
Manuel Clos
llanero eresmas net

TCPA y Palladium: http://bulmalug.net/body.phtml?nIdNoticia=1398
TCPA and Palladium: http://www.cl.cam.ac.uk/~rja14/tcpa-faq.html




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