mcs-manager dialog too wide

Brian J. Tarricone bjt23 at cornell.edu
Sat Apr 1 21:54:12 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adriano Winter Bess wrote:
> Hi,
> 
> I've been updating some pt_BR translations for Xfce trunk and I'm concerned
> about the width of the xfce-mcs-manager dialog. It seems to me that every button
> is given the size of the biggest one (which sounds consistent), but in pt_BR it
> turns out that the whole dialog gets very wide (and ugly).
> 
> So I decided to start wrapping the text for some of the plugin labels and things
> started to look much better. The problem is that the labels are not justified
> center (I think this is the way it should look like), so I had to make a wild
> guess to make sure it "looked" justified center:

You definitely should NOT be putting newlines in the translated text
(actually, I think gettext will barf on this since the number of
newlines in msgid and msgstr don't match).  The correct way would be to
do as you're doing in the code, except you really want:

gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0.5);

Gtk is rather unintuitive when dealing with label alignment...

	-brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFELtpk6XyW6VEeAnsRAkBJAJ9M9cpcZ2EDaKLIEqm8ZZLqxw6MuACfWs2X
oiIzs7V9BsJ7XqZNhpNEuY0=
=FcCP
-----END PGP SIGNATURE-----



More information about the Xfce4-dev mailing list