From: Axel S. <Axe...@en...> - 2009-05-14 07:38:58
|
Hi Colin, On Wed, 2009-05-13 at 16:27 +0100, Colin McQuillan wrote: > On second thoughts, perhaps the best approach is the split Gdk.Structs > into Gtk.Structs and Gtk.Gdk.Structs? The cycle I hit is > GtkStyle->PangoFontDescription->GdkColor, which is a cycle between > (Gtk+Gdk) and Pango. thanks for the patches. I'll apply them as soon as I get around to it. Splitting Structs into two files, one for Gdk and one for Gtk would mirror what is done with Enums. However, the distinction of Gdk.Enums and Gtk.Enums is done already in the C libraries whereas the split of Structs would be a pure Gtk2Hs decision. Thus, I wonder, if this will really help us. Maybe the right thing is to create many more .hsc files whenever they're needed. For instance, we could have one for FontDescription or, as you've done, we could just have an hsc file for Styles. I'm not sure what is best here. It's not terribly important what we do, since these modules are invisible to the user. Just some musings. We could do the split of structs into Gdk and Gtk and see if it helps. Axel. |