[Gtk-sharp-list] gapi2-codegen Interface problem

Mike Kestner mkestner at novell.com
Thu Sep 21 10:54:53 EDT 2006


On Thu, 2006-09-21 at 06:58 -0400, Mario Fuentes wrote:
> Hi
> 
> I'm preparing mono bindings for GooCanvas, and it have a problem:
> 
> GooCanvasItem is an Interface with a readonly property called "Model"
> and GooCanvasGroup a class implementing the interface, this class also
> have a method called "set_model" (in C).  The codegen interpreting the
> situation like this:
> 
> class Goo.CanvasGroup : GLib.Object, Goo.CanvasItem {
>     // The readonly property from CanvasItem
>     public Goo.CanvasModel Model {
>         get { ... }
>     }
> 
>     // the goo_canvas_group_set_model method interpretation
>     public Goo.CanvasModel Model {
>         set { ... }
>     }
> }
> 
> Please, if any have a idea for fix the problem, It will be appreciated.

Could you file a bug in bugzilla for this missing conflict resolution?
I probably won't be able to look at it for a while though.

Probably the best way to work around it in the meantime is to grab the
body of that set method and put it in a CanvasGroup.custom file as:

public void SetModel (...

and add a metadata rule to hide the generation of that method.

-- 
Mike Kestner  <mkestner at novell.com>
SUSE® Linux Enterprise 10
Your Linux is ready™
www.novell.com/linux



More information about the Gtk-sharp-list mailing list