[Vala] gtk init args



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.



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