[Gtk-sharp-list] TextView Justification issues

Todd Berman tberman@gentoo.org
Mon, 25 Aug 2003 16:14:24 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_0029_01C36B23.F36D2670
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

The attached sample (thanks jluke) shows the problem.

This issue isnt isolated to just the textview, TextTags have the same
problem with Justification.

--Todd


------=_NextPart_000_0029_01C36B23.F36D2670
Content-Type: application/octet-stream;
	name="T.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="T.cs"

using System;
using Gtk;
using GtkSharp;

class TextViewSample
{
	static void Main ()
	{
		new TextViewSample ();
	}

	TextViewSample ()
	{
		Application.Init ();
		Window win = new Window ("TextViewSample");
		win.SetDefaultSize (600,400);
		
		Gtk.TextView view;
		Gtk.TextBuffer buffer;

        view = new Gtk.TextView ();
        buffer = view.Buffer;

        buffer.Text = "Hello, this is some text";
		view.Justification = Gtk.Justification.Center;

		win.Add (view);
		win.ShowAll ();

		Application.Run ();
	}
}

------=_NextPart_000_0029_01C36B23.F36D2670--