mcs-manager dialog too wide

Adriano Winter Bess awbess at gmail.com
Sat Apr 1 22:24:12 CEST 2006


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?

Regards,
Adriano
-- 
Adriano Winter Bess

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20060401/9b28dccf/attachment.pgp>


More information about the Xfce4-dev mailing list