Re: [Gtk2hs-devel] Porting to Gtk3

2012-07-11 Thread Peter Davies
On 11 July 2012 23:02, Hamish Mackenzie wrote: > > On 10 Jul 2012, at 19:12, Hamish Mackenzie wrote: > >> I had to disable plugNsocket because they have moved to gtk/gtkx.h and I >> could not work out how to get them to work. I tried creating a gtk3.h that >> #included gtk/gtk.h and gtk/gtkx.h,

Re: [Gtk2hs-devel] Porting to Gtk3

2012-07-11 Thread Hamish Mackenzie
On 10 Jul 2012, at 19:12, Hamish Mackenzie wrote: > I had to disable plugNsocket because they have moved to gtk/gtkx.h and I > could not work out how to get them to work. I tried creating a gtk3.h that > #included gtk/gtk.h and gtk/gtkx.h, but that did not seem to work. How is it > working o

Re: [Gtk2hs-devel] Porting to Gtk3

2012-07-10 Thread Hamish Mackenzie
On 10 Jul 2012, at 09:00, Axel Simon wrote: >> P.S. What does tools/hierarchyGen/hierarchy.list actually do? > > It is used by a small tool called HierarchyGen.hs to generate Types.chs. I suspect Peter might have been wondering why there is a hierarchy.list file tools/hierarchyGen/hierarchy.lis

Re: [Gtk2hs-devel] Porting to Gtk3

2012-07-09 Thread Axel Simon
On 09.07.2012, at 18:02, Peter Davies wrote: > P.S. What does tools/hierarchyGen/hierarchy.list actually do? It is used by a small tool called HierarchyGen.hs to generate Types.chs. If it is really too much hassle to add tags to the file for Gtk3, you should be able to use a specify a differen

Re: [Gtk2hs-devel] Porting to Gtk3

2012-07-09 Thread Peter Davies
> If you put your working branch online somewhere (or perhaps just email > work in progress patches) I would be happy to try to help. I haven't actually done very much yet, due to other projects. Here is a rough roadmap 1. Add a flag to cabal to use gtk3 (done, see patch) 2. Make hierarchyGen use

Re: [Gtk2hs-devel] Porting to Gtk3

2012-07-09 Thread Hamish Mackenzie
I'd like to get this sorted too. This seems useful... http://developer.gnome.org/gtk3/3.4/gtk-migrating-2-to-3.html If you want to a hand let me know. I am keen to get this working as gtk 2 on OS X has some issues with Retina MacBook Pro display (text insertion cursor is not displayed). In G

Re: [Gtk2hs-devel] Porting to Gtk3

2012-06-08 Thread wagnerdm
Quoting Peter Davies : > I want to get gtk2hs working on gtk3, to do that I am: > * Adding a flag to gtk.cabal (called "gtk3") that makes it > pkgconfig-depend on gtk+-3.0 rather than gtk+-2.0. > * Putting everything that is removed in gtk3 in "#if GTK_MAJOR_VERSION < 3". > > Do I need to do anyth