[Gtk-sharp-list] TreeModelAdapter + TreeDragSourceAdapter

"Andrés G. Aragoneses" knocte at gmail.com
Mon Jan 12 11:47:49 EST 2009


Also be sure to take a look to:

http://www.mono-project.com/GInterfaces

Regards.

Christian Hergert wrote:
> My apologies, It seems when inheriting from GLib.Object, simply adding
> the implementor to your inherited interfaces works correctly.
> 
> That was a pleasant surprise!
> 
> Example for the curious,
> 
> public class BdbListStore<T>: GLib.Object, TreeModelImplementor,
> TreeDragSourceImplementor where T: class
> 
> -- Christian
> 
> On Mon, Jan 12, 2009 at 2:45 AM, Christian Hergert
> <christian.hergert at gmail.com> wrote:
>> How the heck does one implement a TreeModel AND a TreeDragSource using
>> this funky GInterface Implementor/Adapter stuff.
>>
>> I need the Model (a TreeModelAdapter) to implement TreeDragSource,
>> while I'm supposed to implement through theTreeModelImplementor, thus
>> having no control over that.
>>
>> Is it possible for a class to implement 2 GInterfaces?
>>
>> -- Christian
>>



More information about the Gtk-sharp-list mailing list