Andy Stewart <lazycat.mana...@gmail.com> writes:

> Hi Axel,
>
> Axel Simon <axel.si...@in.tum.de> writes:
>
>> On Mar 18, 2010, at 17:54, Andy Stewart wrote:
>>
>>>
>>> Axel, i plan to update all GTK+ API to 2.18 with apiGen tool.
>>> And i recommand we build a `API-TODO` file under darcs repository,
>>> in it have all libraries that haven't update.
>>> We remove corresponding library name from API-TODO after we finish one
>>> library.
>>> Then we will know how much libraries haven't update.
>>> What do you think?
>>
>> Yes, that might be a good plan. I have started on that alphabetically  
>> once. But keeping a list might be more organized.
>>
>> It would be good if we could fix some things in apiGen:
>>
>> - signal names in documentation should be generated as  
>> 'actionActivate' not "::activate".
>>
>> There might be more...
> I have wrote elisp extension (gtk2hs.el) that convert C document 
> automatically.
>
> It convert those:
> get_text_buffer_new()         => 'textBufferNew'
> GtkWidget::realize            => 'realize'
> GTK_ENUM_EXAMPLE              => 'GtkEnumExample'
> TRUE                          => True
> FALSE                         => False
>
> This function can auto-fill long lines document and transform Haddock
> comment style.
>
> If you use Emacs, just select document and do "M-x gtk2hs-format-docs",
> then you type `C-y` will get Haskell documentation style.
> Below is source code of gtk2hs.el
New version with new feature:
1-> Transform variable name: group_cycling   =>    @groupCycling@
2-> Transform signal: "mnemonic-activate" signal   =>  'mnemonicAcivate' signal.

Attachment: gtk2hs.el
Description: New version of gtk2hs.el

BTW, gtk2hs.el integrate with ediff in Emacs is perfect to update gtk2hs
api. :)

Cheers,

  -- Andy
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to