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

Reply via email to