Re: how to access command line arguments?



Hello,

On Sun, May 09, 2004 at 08:42:01AM +0200, Jean Bréfort wrote:
> You should remove the "GNOME_PARAM_POPT_CONTEXT, &pctx," line and add
> the following line just after the call to gnome_program_init.
> 
> g_object_get(G_OBJECT(my_app), GNOME_PARAM_POPT_CONTEXT, &pctx, NULL);

Thank you very much, this works now.
Do you know whether I have to call

    poptFreeContext(pctx);

on the resulting pointer after use?

Jochen
-- 
http://seehuhn.de/

Attachment: signature.asc
Description: Digital signature



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