On 11 July 2012 23:02, Hamish Mackenzie <hamish.k.macken...@googlemail.com> 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, but that did not seem to work. How is >> it working out what header file to look in?
My trick is to use the fact that gtk/gtkx.h includes gtk/gtk.h. > I think I have managed to get to the bottom of this. It turns out Plug and > Socket stuff only exists in gtk3 when GDK_WINDOWING_X11 is defined (so > Quartz on the OS X is out). I think something like this might work... > > if os(windows) || (flag(gtk3) && flag(have-quartz-gtk)) > x-Types-Tag: default > else > x-Types-Tag: default plugNsocket > cpp-options: -DHAVE_PLUG_AND_SOCKET > > Then we can add HAVE_PLUG_AND_SOCKET to the existing #ifs that only check for > WIN32. Cool, thanks for looking that up. FYI I'm about halfway through "#ifdef"ing (and occasionally minor code changes) the source for GTK3 compatibility, I hope to send a patch that builds on Gtk3 at some point on Friday. Peter, ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel