[Gtk-sharp-list] UTF-8 strings in buttons and window titles don't work
Markus Bertheau
twanger@bluetwanger.de
08 Jul 2003 23:23:23 +0200
--=-0PBTmAihVjc4cGHZBOU7
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
I'll attach a sample program.
--
Markus Bertheau.
Berlin, Berlin.
Germany.
--=-0PBTmAihVjc4cGHZBOU7
Content-Disposition: attachment; filename=ButtonApp.cs
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=ButtonApp.cs; charset=UTF-8
// ButtonApp.cs - Gtk.Button class Test implementation
//
// Author: Mike Kestner <mkestner@speakeasy.net>
//
// (c) 2001-2002 Mike Kestner
namespace GtkSamples {
using Gtk;
using GtkSharp;
using System;
using System.Drawing;
public class ButtonApp {
public static int Main (string[] args)
{
Application.Init ();
Window win =3D new Window ("=D0=9A=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0");
win.DefaultSize =3D new Size (200, 150);
win.DeleteEvent +=3D new DeleteEventHandler (Window_Delete);
Button btn =3D new Button ("=D0=A8=D0=B5=D0=BB=D0=BA=D0=BD=D0=B8 =D0=BC=
=D0=B5=D0=BD=D1=8F");
btn.Clicked +=3D new EventHandler (btn_click);
win.Add (btn);
win.ShowAll ();
Application.Run ();
return 0;
}
static void btn_click (object obj, EventArgs args)
{
Console.WriteLine ("=D0=9F=D1=80=D0=B8=D0=B2=D0=B5=D1=82");
}
static void Window_Delete (object obj, DeleteEventArgs args)
{
Application.Quit ();
args.RetVal =3D true;
}
}
}
--=-0PBTmAihVjc4cGHZBOU7--