[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.

Content-Type: text/plain;
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.


Content-Type: application/octet-stream;
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;

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 ();