[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Cairo and Gtk
From: |
Gwenael Casaccio |
Subject: |
Re: [Help-smalltalk] Cairo and Gtk |
Date: |
Tue, 2 Jun 2009 13:12:03 +0200 |
User-agent: |
KMail/1.11.3 (Linux/2.6.28-11-generic; KDE/4.2.3; x86_64; ; ) |
On Tuesday 02 June 2009 12:57:00 you wrote:
> Gwenael Casaccio wrote:
> > Hi,
> >
> > It is now possible to draw cairo widget with Gtk. Look at this
> >
> > :http://smalltalk.gnu.org/blog/mrgwen/playing-gtk-and-cairo .
> >
> > I've made few extensions for GTK and Cairo may be we can integrate these
> > extensions with GST ;)
>
> Yes, we can.
>
> Only, the callout to gdk_cairo_create should probably be in GdkDrawable
> on the instance side. And, can you try making GdkDrawable a subclass of
> Cairo.CairoContextProvider, so that you can just do "aGtkWidget
> getWindow withContextDo: [ ... ]"?
>
> With these changes, I will integrate it.
>
> Paolo
And by the way there is a bug with the GtkAllocation when you want to access
to the height, width, .. You try to convert the object to a CShortType but it
should be a CIntType.
Cheers,
Gwenael
--
GtkLauncher for GNU Smalltalk : http://gtklauncher.bioskop.fr/