[Gtk-sharp-list] Bug porting app to GTK#1.9.2

Rafael Teixeira Rafael Teixeira <monoman@gmail.com>
Thu, 17 Mar 2005 19:40:07 -0300


I also topped into it. Seems that now it is being
pango-or-html-formatted so that "<" and ">" can't be used unchanged in
the text. If it is html just use &lt; and &gt;, but for pango, which I
know very little, there may be some other escaping scheme...

HIH, :)


On Thu, 17 Mar 2005 23:19:33 +0000, underdog10@netcourrier.com
<underdog10@netcourrier.com> wrote:
> I porting my GTK#1.0 application to GTK#1.9.2.
> For my about dialog, i use the code below.
> Works fine on GTK#1.0 but on GTK#1.9.2, i got the dialog bow without the =
text. I also got a warning telling me i use invalid caracter.
> Why?
> Thanks for you help.
>=20
> private void OnToolbarAboutClicked()
> {
> System.Text.StringBuilder AuthorStringBuild =3D new System.Text.StringBui=
lder ();
> String []authors =3D new String[] {
>         "KaYa <my@email.com>",
>         ""
> };
> String []web =3D new String[]     {
>         "http://xbgm.sourceforge.net",
>         ""
> };
>=20
> AuthorStringBuild.Append (NAME + " " + VERSION + "\n\n");
> AuthorStringBuild.Append ("Xbox Game Manager.\n");
> AuthorStringBuild.Append ("Copyright (c) 2004-2005\n\n");
>=20
> // This is not working on GTK#2.0 why?
> /*      AuthorStringBuild.AppendFormat (
>                         "Authors:\n\t{0}\n\t{1}",
>                         authors[0],
>                         authors[1]
>                 );
>         AuthorStringBuild.AppendFormat (
>                         "\nWebsite:\n\t{0}\n\t{1}",
>                         web[0],
>                         web[1]
>                 );
>=20
> */      MessageDialog md =3D new MessageDialog (this,
>                         DialogFlags.DestroyWithParent,
>                         MessageType.Info,
>                         ButtonsType.Ok,
>                         AuthorStringBuild.ToString()
>                         );
>=20
>         int result =3D md.Run ();
>         md.Hide();
>         md.Destroy();
> }
>=20
> -------------------------------------------------------------
> NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Too=
lbar...
> Web/Wap : www.netcourrier.com
> T=C3=A9l=C3=A9phone/Fax : 08 92 69 00 21 (0,34 =E2=82=AC TTC/min)
> Minitel: 3615 NETCOURRIER (0,16 =E2=82=AC TTC/min)
>=20
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>=20


--=20
Rafael "Monoman" Teixeira
---------------------------------------
I'm trying to become a "Rosh Gadol" before my own eyes.=20
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!