Hi Axel, that's great you added it already. I'm actually know little about the RC procedures too, I just wanted a close icon in a tab of a notebook, and didn't succeed to place it properly, without that hack.
And I've almost dreamed at night about how wonderful it would be if gtk2hs would be simple to install with cabal. So I'll keep my fingers crossed that it works. I plan a Leksah release beginning of March, and I fear we have to support both ghc 6.10 and 6.12. The windows installer gets downloaded more then 10000 times, so it is important to provide one, and I hope we don't need to pack our own gtk2hs part this time, but can use the gtk2hs windows installer as prerequisite. Jürgen Am Mittwoch, den 03.02.2010, 09:49 +0100 schrieb Axel Simon: > Hi Jürgen, > > On 02.02.2010, at 22:31, Jürgen Nicklisch-Franken wrote: > > > In Leksah we need to have a binding for this procedure. The patch was > > submitted on 2 Sep 2009 on this mailing list from Maciej, but I can't > > find the proc. > > Can you please tell me were I can find it or add it? > > Sorry about my lack of communication. I thought the General module was > the wrong place to put this function. Not being aware that the RC > functions are actually needed (I never put the effort in to understand > this mechanism), I assumed that then other RC functions might be > useful since rcParseString obviously is. > > So I generated all of RcStyle that was simple, amongst others your > function. It's all under General/RcStyle.chs in the darcs repository. > > A release will follow once I win the fight with Cabal (i.e. when I > manage to build the whole Gtk2Hs suite with cabal). > > Cheers, > Axel. > > > Thanks > > Jürgen > > > > > > diff -Nur gtk2hs-0.10.1/gtk/Graphics/UI/Gtk/General/General.chs > > gtk2hs-0.10.1/gtk/Graphics/UI/Gtk/General/General.chs > > --- gtk2hs-0.10.1/gtk/Graphics/UI/Gtk/General/General.chs > > 2009-02-04 09:22:53.000000000 +0100 > > +++ gtk2hs-0.10.1/gtk/Graphics/UI/Gtk/General/General.chs > > 2009-07-26 21:35:39.000000000 +0200 > > @@ -68,7 +68,10 @@ > > inputAdd, > > inputRemove, > > IOCondition, > > - HandlerId > > + HandlerId, > > + > > + -- * Resource configuration functions > > + rcParseString > > ) where > > > > import System.Environment (getProgName, getArgs) > > @@ -244,3 +247,11 @@ > > -- > > grabRemove :: WidgetClass w => w -> IO () > > grabRemove = {#call grab_remove#} . toWidget > > + > > +-- | reads resource configuration string @rcstring@, parses it and > > applies > > +-- new style configuration > > +-- > > +rcParseString :: String -> IO () > > +rcParseString rcstring = > > + withUTFString rcstring $ \rcstringPtr -> > > + {# call unsafe gtk_rc_parse_string #} rcstringPtr > > > > > > ------------------------------------------------------------------------------ > > The Planet: dedicated and managed hosting, cloud storage, colocation > > Stay online with enterprise data centers and the best network in the > > business > > Choose flexible plans and management services without long-term > > contracts > > Personal 24x7 support from experience hosting pros just a phone call > > away. > > http://p.sf.net/sfu/theplanet-com > > _______________________________________________ > > Gtk2hs-devel mailing list > > Gtk2hs-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel > ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel