[Gd-hackers] melange gobject name mapper
Danny Milosavljevic
danny_milo at yahoo.com
Fri Mar 2 21:28:58 CET 2007
Hi,
I propose to patch melange with
<http://www.scratchpost.org/patches/melange-name-cutter.patch>
This registers a name mapper #"g-object-strip-object-prefix" that gets rid of the notorious prefixes gtk libraries use all over the place. It also adds "?" to predicates:
For example it maps
gboolean gtk_widget_get_sensitive(GtkWidget* widget)
to
define method sensitive?(widget :: <widget>) => (sensitive :: <bool>)
Note that the setters are still broken (the order of arguments is wrong, the generic function's arguments are wrong sometimes). Help is appreciated, but I'll learn how to do it in time anyway :-)
The gtk wrappers are work in progress, but this melange patch should be quite straightforward anyway and mostly finished[1].
I thought I'll submit it in small parts so people can correct me before I depend on a heap of wrongness :-)
cheers,
Danny
[1] "member?" doesn't seem to do what I think it does, search for it in the patch and see.[2]
[2] Is there any more sophisticated way to debug a dylan program than dformat ? :-)
More information about the hackers
mailing list