On Tue, 2008-11-25 at 21:03 -0500, Ross Mellgren wrote: > Hi all, > > I tried to build my gtk2hs kit with --disable-deprecated, since I saw > that the previous event hook functions I had been using such as > onButtonPress had been deprecated and I have no reason to develop > against the old interfaces. > > However, it turns out that gtk2hs didn't build once I had configured > with --disable-deprecated for two reasons (and I won't go into how long > it took me to nail it down to this -- it's embarrassing): > > - FileSelection is omitted from Gtk when GTK_DISABLE_DEPRECATED is > defined, which --disable-deprecated does (among others). > - Same with Tooltips. > > FileSelection apparently has been replaced with FileChooser and has a > binding in gtk2hs, and it looks like Tooltips (plural) should be > replaced with Tooltip (singular), but there is apparently no binding > (yet?) for Tooltip. > > My question, then, is twofold... what is the policy on > --disable-deprecated (should I give up on it early), and does anyone > have a binding of Tooltip hanging around, or is one already in there > that I didn't see? I can easily make the deprecated modules in gtk2hs > not be built with --disable-deprecated, but without a replacement for > Tooltips it seems like a bad idea.
I haven't tested the DISABLE_DEPRECATED variant in a long time. I'll try to get it to work again. With respect to Tooltip vs Tooltips: I don't think we have any code yet that is marked as deprecated starting from a certain version number of Gtk+. So far, the --disable-deprecated option was merely meant to disable parts of the Gtk2Hs API that has been superseded by other functionality. Thus, an API that exists in Gtk+ and in Gtk2Hs but is superseded by an new API in Gtk+ remains in Gtk2Hs as long as it remains in Gtk+. That was a bit of a mouth full. In a nutshell: We shall not remove APIs from Gtk2Hs just because they have been marked as deprecated in Gtk+. Hope this helps, Axel. > -Ross > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gtk2hs-devel mailing list > Gtk2hs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel