mail-archives/gtk-sharp-list/2009-January/009344.html

85 строки
3.3 KiB
HTML
Исходник Обычный вид История

2019-06-06 22:02:55 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] TreeModelAdapter + TreeDragSourceAdapter
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20TreeModelAdapter%20%2B%20TreeDragSourceAdapter&In-Reply-To=6d4a25b10901120245m7974a975v323b784c055468d8%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="009343.html">
<LINK REL="Next" HREF="009346.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] TreeModelAdapter + TreeDragSourceAdapter</H1>
<B>Christian Hergert</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20TreeModelAdapter%20%2B%20TreeDragSourceAdapter&In-Reply-To=6d4a25b10901120245m7974a975v323b784c055468d8%40mail.gmail.com"
TITLE="[Gtk-sharp-list] TreeModelAdapter + TreeDragSourceAdapter">christian.hergert at gmail.com
</A><BR>
<I>Mon Jan 12 05:58:06 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="009343.html">[Gtk-sharp-list] TreeModelAdapter + TreeDragSourceAdapter
</A></li>
<LI>Next message: <A HREF="009346.html">[Gtk-sharp-list] TreeModelAdapter + TreeDragSourceAdapter
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#9344">[ date ]</a>
<a href="thread.html#9344">[ thread ]</a>
<a href="subject.html#9344">[ subject ]</a>
<a href="author.html#9344">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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&lt;T&gt;: GLib.Object, TreeModelImplementor,
TreeDragSourceImplementor where T: class
-- Christian
On Mon, Jan 12, 2009 at 2:45 AM, Christian Hergert
&lt;<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">christian.hergert at gmail.com</A>&gt; wrote:
&gt;<i> How the heck does one implement a TreeModel AND a TreeDragSource using
</I>&gt;<i> this funky GInterface Implementor/Adapter stuff.
</I>&gt;<i>
</I>&gt;<i> I need the Model (a TreeModelAdapter) to implement TreeDragSource,
</I>&gt;<i> while I'm supposed to implement through theTreeModelImplementor, thus
</I>&gt;<i> having no control over that.
</I>&gt;<i>
</I>&gt;<i> Is it possible for a class to implement 2 GInterfaces?
</I>&gt;<i>
</I>&gt;<i> -- Christian
</I>&gt;<i>
</I></PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="009343.html">[Gtk-sharp-list] TreeModelAdapter + TreeDragSourceAdapter
</A></li>
<LI>Next message: <A HREF="009346.html">[Gtk-sharp-list] TreeModelAdapter + TreeDragSourceAdapter
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#9344">[ date ]</a>
<a href="thread.html#9344">[ thread ]</a>
<a href="subject.html#9344">[ subject ]</a>
<a href="author.html#9344">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
mailing list</a><br>
</body></html>