[Gtk-sharp-list] Gtk.Image weird (auto-generated) naming

Charles Iliya Krempeaux charles@reptile.ca
19 Feb 2003 15:28:08 -0800


In the Gtk.Image class there is some weird (auto-generated) naming.

For example, the C procedure:

    void gtk_image_set_from_pixbuf(GtkImage *image, GdkPixbuf *pixbuf);

Gets turned into:

    public Gdk.Pixbuf FromPixbuf {
        set {
            gtk_image_set_from_pixbuf(Handle, value.Handle);

Which is kind strange when you use it.  You get code that
looks like:

    Gtk.Image image = new Gtk.Image();

    image.FromPixbuf = pixbuf;

This should really be a procedure, and not a property.  Now, I
could easily write a .custom file for Gtk.Image.  However, is
there a way to get rid of this property?  (So that it doesn't
confuse developers who use Gtk.Image.)

(I guess we could just leave it undocumented.  But it would be
nice to get rid of it.)

See ya
     Charles Iliya Krempeaux, BSc

 Reptile Consulting & Services    604-REPTILE    http://www.reptile.ca/