bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Changing language for GUI


From: Joern Thyssen
Subject: Re: [Bug-gnubg] Changing language for GUI
Date: Mon, 25 Aug 2003 20:00:45 +0000
User-agent: Mutt/1.4.1i

On Mon, Aug 25, 2003 at 05:57:51PM +0200, Jim Segrave wrote
> 
> But if you look at the code, it appears that all the getopt processing
> of the command line simply sets flags - it doesn't do any function
> calls out of the switch statements, so it appears (without having
> studied ti closely) that a single call to getopts_long() and a single
> following switch statement would suffice. This was a side comment, not
> directly relevant.

Yes, it certainly possible and would make the code simpler, but you do
need to handle the gtk specified command line arguments as well,
otherwise we would have a hard time giving a suitable error message for
unknown command line arguments.

Something like:

   ...
  case 'X': /* --g-fatal-warnings */
  case 'Y': /* --gtk-debug */
   ...
     /* ignore: handled by gtk_init */
     break;

Check <URL:http://developer.gnome.org/doc/API/2.0/gtk/gtk-running.html>

Jørn

Attachment: pgpeJxpX3NV3c.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]