Re: How to accept extra command line args?




> My application has some non-Gnome command line parameters.  The existing
> code parses these, but doesn't exactly leave argv in a good state (I
> didn't write this code, BTW).  This precludes doing my argv parsing
> before calling gnome_init().  However, gnome_init (unlike gtk_init)
> aborts if it encounters unknown parameters.

In gnome you should use the popt to declare the options you want to
process.   There are a number of examples on how to do so.

I am sure Sopwith can tell you where to get this information.

Miguel.



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