Simply parse args afterwards like you would do without the gtk init.

On Wed, Apr 30, 2014 at 8:31 PM, Max <[email protected]>wrote:

> Hi.
>
> I've often seen following code in examples:
>
> void main(string[] args) {
> ...
>   Gtk.init(ref args);
> ...
>   new MainLoop().run();
> }
>
> Could you clarify - why does gtk init requires program arguments? And how
> can we
> combine this with parsing regular command-line arguments like --version
> --out-file=lol.log etc.?
>
> cheers,
> Max.
>
> _______________________________________________
> vala-list mailing list
> [email protected]
> https://mail.gnome.org/mailman/listinfo/vala-list
>



-- 
www.debian.org - The Universal Operating System
_______________________________________________
vala-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to