mcs-manager dialog too wide

Brian J. Tarricone bjt23 at cornell.edu
Sat Apr 1 22:28:44 CEST 2006


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

Adriano Winter Bess wrote:
> On Sat, Apr 01, 2006 at 11:54:12AM -0800, Brian J. Tarricone wrote:
>> 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...
> 
> Thanks for the hint. In fact, gettext did not complain because of the different
> number of newlines, but anyway it didn't look like the best thing to be done. In
> my opinion this problem has nothing do with alignment, but it is related to line
> breaking and proper justification.
> 
> I saw in the xfce-mcs-manager code that line wrapping is set to TRUE for the
> labels, but the line wrapping doesn't happen at all unless the label width is
> explicitely restricted through gtk_widget_set_size_request(). Of course it would
> still need proper justification. Maybe we could agree on a "maximum width" for
> the buttons?

That would be fine, if you can account for font size somehow.  Or maybe
just make it icon_width + some_constant.  I dunno.  Maybe just play
around with some different numbers at different screen resolutions and
different font sizes?

	-brian


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

iD8DBQFELuJ76XyW6VEeAnsRAuxzAJsH8tqzgkUYeVJwAGvBjF4LBcwhVgCg2jTn
1nuSC7p/zr1AC8c0oiN0Hk8=
=Ws/P
-----END PGP SIGNATURE-----



More information about the Xfce4-dev mailing list