Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-06

gtk-unit

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Florian Klaempfl
to Olaf Leidinger
you wrote
Hello! Is anybody already working on gtk+-2.0 units for freepascal?

Not as far as we know. But every volounteer is welcome :). Most work can be done probably using h2pas, so this job isn't that hard.

If yes where can I find them.

Reply by email

Olaf Leidinger
to Florian Klaempfl
Show quoted text 7 lines
At 13:27 12.06.02 +0200, you wrote: >Hello! > >Is anybody already working on gtk+-2.0 units for freepascal? Not as far as we know. But every volounteer is welcome :). Most work can be done probably using h2pas, so this job isn't that hard.

Well, so I'll have a try.

>If yes where >can I find them.

Reply by email

Fernando Lozano
to Florian Klaempfl: Not as far as we know. But every volounteer is welcome :). Most work can be done probably…

Hi there,

> Is anybody already working on gtk+-2.0 units for freepascal? Not as far as we know. But every volounteer is welcome :). Most work can be done probably using h2pas, so this job isn't that hard.

Please correct me if I am wrong: the current GTK+ unit is simply a Pascal wrapper around the C API for GTK+. Not very easy to use, although the Pascal bindings are easier to program for than the C original API. The Lazarus Project is building an OO wrapper for GTK+ based on Borland VCL and I guess close to the current Delphi/Kylix CLX.

But there are OO bindins for GTK+ for Java and C++, and there's a contributed Object Pascal wrapper. The Java binding is *much* easier, and I think as there are other OO bindings (for Phyton, PHP, ...) these bindings should be as close as it's possible given each language structure.

Are there someone working on this, or some kind of collaboration between the different GTK OO wrappers?

[]s, Fernando Lozano

Reply by email

Peter Vreman
Show quoted text 20 lines
Hi there, >> Is anybody already working on gtk+-2.0 units for freepascal? > > Not as far as we know. But every volounteer is welcome :). > Most work can be done probably using h2pas, so this job isn't that hard. Please correct me if I am wrong: the current GTK+ unit is simply a Pascal wrapper around the C API for GTK+. Not very easy to use, although the Pascal bindings are easier to program for than the C original API. The Lazarus Project is building an OO wrapper for GTK+ based on Borland VCL and I guess close to the current Delphi/Kylix CLX. But there are OO bindins for GTK+ for Java and C++, and there's a contributed Object Pascal wrapper. The Java binding is *much* easier, and I think as there are other OO bindings (for Phyton, PHP, ...) these bindings should be as close as it's possible given each language structure. Are there someone working on this, or some kind of collaboration between the different GTK OO wrappers?

The OO wrappers would still need an interface to the library functions. Those functions are in the current GTK units. And these GTK units still need to be updated to GTK+ 2.0. Maybe it gtk20.pp should be created if there are too much conflicts

Reply by email