On Mon, 27 Feb 2006 18:47:56 +0200
"A.J. Venter" <[EMAIL PROTECTED]> wrote:
>
> > Correct.
> > There must be already such a function, but I'm not sure if it works
> > good. There are a lot of font issues in the gtk2 interface.
> Well if it's there, it's not there under the same name :)
> >
> > > So the RIGHT way I believe is to enable the method, presumably by
> > > descending PGTKWidget to create PGTK2Widget (oddly TGK2Widget exists
> > > but TGKWidget does not) - which may have the inadvertent side effect
> > > of meaning that damn near every bit of GTK needs to have it´s type
> > > definitions altered to call and use the derived class, either that or
> > > GTK2 should simply overWRITE the PGTKWidget definition with it´s own
> > > version that enables the GTK2 specific features.
> >
> > I'm not sure what this TGTK2Widget is.
> It is defined in gtk2int.pas and seems to to be the parent widget for gtk2
>
> widgets, except it's a LOT shorter than the TGTKWidget definition in
> gtkint.pas (this was where I had to add the procedure definition for
> setWidgetFont),
Maybe you mean TGtk2WidgetSet?
That's not the parent of gtk2 widgets, but the class of the LCL gtk2
interface.
A PGtkWidget = ^TGtkWidget is the definition of a gtk widget in the gtk
bindings (gtk1 and gtk2 and gtk3 and ...).
> and it doesn't seem to be derived,
> I have not found any reference to PGTK2Widget however leading me to
> presume it doesn't exist, the procedure reference right now uses
> PGTKWidget since that is what I got from Darek's patch, but I am fairly
> certain that it DOES need to change to be a pointer to a TGK2Widget, I am
> still trying to figure out where to DO that though, it is not impossible
> that defining PGTK2Widget and making whatever changes is needed to allow
> SetWidgetFont calls under GTK2 to pass the right type will solve the
> problem entirely - of course a GTK2 only method won't exist if we are
> using a GTK1 class definition to refer to the widget objects in calls.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives