[Mono-dev] Usage of construct properties in a wrapped GObject library

mardy.tardi mardy at users.sourceforge.net
Sun Apr 26 11:38:43 EDT 2009


Hi all, I hope this is the right list for this kind of questions.

I have a GObject-based library, written in C, which I want to use from a C#
application (f-spot). I generated the bindings with the GAPI tools, but I'm
not satisfied with the result. The problem is that the C API for that
GObject provides a method that is called my_object_new(), which simply calls
g_object_new() with the proper arguments. But the object supports many other
construct-only properties, which I want to set from the C# application, and
apparently I cannot, because the GAPI tools only generated one constructor
which takes no parameters.
I guess that by modifying the C library by adding more _new() methods I can
get more constructors in the C# API, but is there some other way around it,
without modifying the C API?

TIA!
  Alberto

-- 
View this message in context: http://www.nabble.com/Usage-of-construct-properties-in-a-wrapped-GObject-library-tp23243364p23243364.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list