Cairo and Gtk

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Cairo and Gtk

MrGwen
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 ;)

Cheers,
Gwenael

--

GtkLauncher for GNU Smalltalk : http://gtklauncher.bioskop.fr/


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Cairo and Gtk

Paolo Bonzini-3
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


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Cairo and Gtk

MrGwen
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/


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk