Sign in Join

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

Mailing lists / fpc-devel / 2005-02

Re: Changes to gtk 2 bindings

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Michalis Kamburelis: Hi I have a couple of corrections to gtk 2 bindings, gtk2forpascal. I also made gtkglext…
Show quoted text 14 lines
Hi I have a couple of corrections to gtk 2 bindings, gtk2forpascal. I also made gtkglext bindings that could be incorporated into gtk 2 bindings, if it feels appropriate (since, as far as I know, initial goal of gtk2forpascal was to include gtkglext bindings, but they were not implemented because interface of gtkglext library was changing rapidly). Since gtk2forpascal bindings are now incorporated into FPC source tree, my question is: should I submit my patches/additions to gtk 2 bindings here, as patches versus fpc packages/extra/gtk2/ sources, or should I submit them to gtk2forpascal on sourceforge ? In other words, where does development of gtk2forpascal continue -- as part of FPC, or on gtk2forpascal sourceforge place ?

Both. You can send me the patches/extra files.

Mattias

Reply by email

Michalis Kamburelis

Hi

I have a couple of corrections to gtk 2 bindings, gtk2forpascal. I also made gtkglext bindings that could be incorporated into gtk 2 bindings, if it feels appropriate (since, as far as I know, initial goal of gtk2forpascal was to include gtkglext bindings, but they were not implemented because interface of gtkglext library was changing rapidly).

Since gtk2forpascal bindings are now incorporated into FPC source tree, my question is: should I submit my patches/additions to gtk 2 bindings here, as patches versus fpc packages/extra/gtk2/ sources, or should I submit them to gtk2forpascal on sourceforge ? In other words, where does development of gtk2forpascal continue -- as part of FPC, or on gtk2forpascal sourceforge place ?

Regards,
Michalis.

Reply by email

Michalis Kamburelis
to Mattias Gaertner: On Mon, 28 Feb 2005 20:55:54 +0100 Both. You can send me the patches/extra files. Mattias

Hi

So here they are. Initially I was making my changes versus gtk2forpascal from sourceforge, but now I made them versus FPC sources, since I can't connect to gtk2forpascal cvs on sourceforge. I also noticed that version from FPC tree already contains some of the fixes I was going to send... excellent.

I'm attaching patch to packages/extra/gtk2/, it fixes various small things: compiling gtk_demo, {$linklib c} and {$linklib pthread} needed under FreeBSD, using HasGTK2_2 symbol in gtk2.pas, correct name for identifier TGtkAccelGroupFindFunc, and four missing functions for GtkWindow (gtk_window_fullscreen/unfullscreen,
gtk_window_set_keep_above/below).

Note that I added {$define GTK2_2} at the beginning of gtk2.pas -- I think that GTK >= 2.2 is installed pretty everywhere where any GTK 2.x is installed. But this may be a matter of personal experience, so feel free to remove this bit if you think that's better.

And here you can find my gtkglext translation (12 KB): http://www.camelot.homedns.org/~michalis/unofficial/gtkglext.tar.gz

I tested it (gtk 2 bindings with my patches and gtkglext) on Linux, FreeBSD (5.3) and Win32. In the gtkglext archive you will find subdirectory examples/, there is one simple test program using gtkglext, gears.pas. This is rewritten in Pascal version of gears.c from gtkglext examples. You can also look at the units and programs on my www page, they use gtk2 and gtkglext, though they are not very good example programs for teaching how to use gtkglext (since gtk code is there embedded in rather large unit).

Michalis.

Reply by email

Marco van de Voort
to Michalis Kamburelis
Show quoted text 12 lines
So here they are. Initially I was making my changes versus gtk2forpascal from sourceforge, but now I made them versus FPC sources, since I can't connect to gtk2forpascal cvs on sourceforge. I also noticed that version from FPC tree already contains some of the fixes I was going to send... excellent. I'm attaching patch to packages/extra/gtk2/, it fixes various small things: compiling gtk_demo, {$linklib c} and {$linklib pthread} needed under FreeBSD, using HasGTK2_2 symbol in gtk2.pas, correct name for identifier TGtkAccelGroupFindFunc, and four missing functions for GtkWindow (gtk_window_fullscreen/unfullscreen, gtk_window_set_keep_above/below).

Committed it all. (patch + gdk/gtkglext)

Had to add package opengl as dependancy to the demo.

Reply by email