[lazarus] New Code on Web Site for gtk+1.2.1

Peter Vreman pfv at cooldown.demon.nl
Tue May 11 14:46:26 EDT 1999



> yep I was hving trouble with that on gtk_table_attach last night because I
> could not or the flags....
I've added support for that in the compiler, but only for constants. I
also got the problem while fixing the examples (still not finished)

I didn't see any other way to translate those enums to pascal. I could
add:

type
  TGtkAttachOptions=type longint;

support which comes from delphi and makes a new type which is not
compatible with longint.

But then comes the problem. How do i define the constants that are
TGtkAttachOptions? Because using

const
  GTK_EXPAND : TGtkAttachOptions = 1;

Is not possible, because that makes a typed constant. Maybe in the $J-
(const are read-only) mode delphi handles it like normal constants, i've
still to test that. 

Peter



> Shane are you up and running GTK+ 1.2 stuff now?
> 
> 
> Cliff
> 
> -----Original Message-----
> From: Shane Miller [mailto:SMiller1 at stvgb.org]
> Sent: Tuesday, May 11, 1999 11:24 AM
> To: lazarus at miraclec.com
> Subject: Re: [lazarus] New Code on Web Site for gtk+1.2.1
> 
> 
> I have changed the definition for TGTKAttachOptions back to the old style
> becasue I couldn't get it to work as the new one.  I believe the new one
> should be set up as a SET.
> 
> It's defined in gtkenums.pp
> 
> 
> Shane
> 
> 
> >>> Cliff Baeseman <vbman at pcpros.net> 05/11 7:42 AM >>>
> Everyone the stuff on the things needed page on my site are all for gtk 1.2
> bindings.
> 
> 
> Download the compiler and replace yours with the binaries provided.
> 
> Download the FCL from my site and install and compile.
> 
> Recompile the new GTK+ headers from the site also.
> 
> Finally compile the new lazarus source on the source page.
> 
> This is all stuff from the CVS that has been packaged for use.....
> 
> 
> I have compiled using gtk+1.2.1 so it does work, lazarus has a few small
> problems but I will
> work thru these tonight...
> 
> Cliff
> 
> 
> 
> Peter Vreman wrote:
> 
> > At 01:19 12-5-99 , you wrote:
> > >...
> > >gdktypes.pp(1400,60) Note: Values in enumeration types have to be
> > >ascending
> > >gdkmain.pp(94,90) Error: Identifier not found TGDESTROYNOTIFY
> > >gdkmain.pp(94,90) Error: Type identifier expected
> > >gdkmain.pp(232,111) Error: Identifier not found TGDESTROYNOTIFY
> > >gdkmain.pp(232,111) Error: Type identifier expected
> > >gdkmain.pp(463,23) Error: Identifier not found PGMUTEX
> > >gdkmain.pp(463,30) Error: Error in type definition
> > >gdk.pp(65,1) Fatal: There were 6 errors compiling module, stopping
> > >make: *** [gdk.ppu] Error 1
> > >
> > >it seems that we need glib bindings also ...
> > >glib is separated from gtk in 1.2
> >
> > You should use the latest CVS sources or wait until tomorrow 2:00 AM CEST,
> > then the current sources which work are zipped and placed in the ftp
> >
> > _________________________________________________________________
> >      To unsubscribe: mail lazarus-request at miraclec.com with
> >                 "unsubscribe" as the Subject
> >     archives at http://www.miraclec.com/list_archives/lazarus
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>     archives at http://www.miraclec.com/list_archives/lazarus
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>     archives at http://www.miraclec.com/list_archives/lazarus
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>     archives at http://www.miraclec.com/list_archives/lazarus
> 
  GTK_ATTACH_







More information about the Lazarus mailing list