[Gtk-sharp-list] Wonderful gtk#/gtk+ interop issue on win32

Todd Berman tberman@gentoo.org
Sun, 28 Sep 2003 11:31:10 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C385B4.049C5E70
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I will file this as a bug as well, but pass the test case along to the
list too.

This *only* occurs under win32, I'm not sure if it is specific to the
dropline gtk+ distribution or not.

--Todd

> -----Original Message-----
> From: gtk-sharp-list-admin@lists.ximian.com [mailto:gtk-sharp-list-
> admin@lists.ximian.com] On Behalf Of Mike Kestner
> Sent: September 27, 2003 8:17 PM
> To: Todd Berman
> Cc: gtk-sharp-list@lists.ximian.com
> Subject: Re: [Gtk-sharp-list] Wonderful gtk#/gtk+ interop issue on
win32
> 
> On Thu, 2003-09-25 at 17:53 -0400, Todd Berman wrote:
> 
> 
> > After some reflection and some code searching, it seems like it's a
> > win32 gtk#/win32 gtk+ interop issue.
> 
> Impossible to guess a cause from the information you've provided.
> Please file a bug, and if you can provide a minimal test case to
> reproduce the bug, please attach it as well.
> 
> --
> Mike Kestner <mkestner@speakeasy.net>
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

------=_NextPart_000_0001_01C385B4.049C5E70
Content-Type: application/octet-stream;
	name="test.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="test.cs"

using Gtk;
using System;
using GtkSharp;

namespace Test
{
        public class Driver
        {
                public static void Main()
                {
                        Driver d = new Driver();
                }

                public Driver()
                {

                        Application.Init();

                        Window win = new Window("test");

                        TextTagTable table = new TextTagTable();
                        
                        table.Add(new TestTag());

                        TextBuffer buf = new TextBuffer(table);

                        buf.Text = "Test Blah Test";

                        buf.ApplyTag("test", buf.StartIter, buf.EndIter);

                        TextView v = new TextView(buf);

                        win.Add(v);

                        win.ShowAll();

                        Application.Run();

                }

        }

        public class TestTag : TextTag
        {
                public TestTag() : base("test")
                {
                        this.TextEvent += new TextEventHandler(handler);
                }

                public void handler(object o, TextEventArgs e)
                {
                        e.RetVal = true;
                }
        }
}



------=_NextPart_000_0001_01C385B4.049C5E70--