[Gtk-sharp-list] Getting Application.Init (args) to work
Tue, 02 Dec 2003 23:15:37 -0500
On Tue, 2003-12-02 at 21:57, Peter Williams wrote:
> I've been working on getting Application.Init () to work when given
> commandline arguments. The current code just tries to use a "ref
> string args" parameter when calling gtk_init (), but that doesn't
> work, because the runtime doesn't support passing references to arrays
> into unmanaged code. Or at least, if you try to use the code right now,
> it totally breaks. (Another problem is that gtk_init() expects argv
> to be the program name, which is not the case if you pass it the
> arguments given to your Main() function.)
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.
Bonus: adding it to our docs would be great!