[Gtk-sharp-list] Getting Application.Init (args) to work
Peter Williams
peter@newton.cx
Tue, 02 Dec 2003 23:22:36 -0500
On Tue, 2003-12-02 at 23:15, John Luke wrote:
> This is kind of off-topic but, since I am not from the GTK+ world and
> none of the Gtk# apps use this that I know of... Anyone care to explain
> why you would want/need to do this. Telling me to look at the GTK+ docs
> is an acceptable answer if it is covered there.
Because gtk needs to be able to detect about certain standard parameters
like --display, --screen, --sync, --gtk-debug-flags, etc. And it calls
g_set_progname (or something like that) based on argv[0].
Although I suppose if it's possible, it might just be easier to parse
args ourselves and call gtk API functions to get the equivalent effects
... but gdk seems to have pluggable argument parsing, and in general I
wouldn't say we want to have to be worrying about keeping the options
and semantics of arguments in sync.
Peter
--
Peter Williams peter@newton.cx
"[Ninjas] are cool; and by cool, I mean totally sweet."
-- REAL Ultimate Power