I made this little patch thinking that the default GTK_2_2 define directive in gtk2.pas is really obsolete looking at the current versions of the library (2.8.x and 2.6.x).
Mailing lists / fpc-devel / 2005-09
Diff for GTK 2.6
3 messages · 3 people · –
- FFederico "Lox" Lucignano 1
- FFlorian Klaempfl 1
- Rrichard jackson 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Just as a side note. I'm working on updating the gtk unit to support all of the new stuff in 2.8.x. Right now I'm about a third of the way through Glib.
I do have one question though. I noticed that the functions/procedures that use a variable number of arguments have multiple signatures in the current unit.
One for Kylix compatibility and 2 for FPC.
I've changed those to just one now that FPC accepts the varargs parameter to functions/procedures.
Is that the correct way? Or should I stick with the ( args: array of const ) way of doing it for FPC.
Thanks
Richard Jackson
Federico Lox Lucignano wrote 14 lines
richard jackson wrote 12 lines
Well, I think the "args: array of const" looks much more (object) pascalish but if there is still interest in using the interfaces with Kylix, I see no reason why we shouldn't use varargs if it makes conversion easier. Especially, it's only an interface unit ...
