Re: [Patch] unify wrapped label creation

Albrecht Dreß <[email protected]> Mon, 27 Jan 2020 21:43:26 +0100
Newsgroups gmane.comp.gnome.apps.balsa
Message-ID <[email protected]>
Am 27.01.20 21:38 schrieb(en) Albrecht Dreß:
>> If I'm right (and I recognize a substantial probability that I'm wrong!-), we should just use the "xalign" property to make sure that the text is flush left (or occasionally flush right) in the space allocated to the widget.
>> 
>> Does that make any sense?
> 
> Yes, you're right, it does…  Actually it's easy to fix with the patch – just remove line 934 “gtk_widget_set_halign(label, GTK_ALIGN_START);” in misc.c!

…or do not apply the patch, and everywhere where it would be used (i.e. libbalsa_create_wrap_label() would be called) add the xalign property.  I think the code simplification (one statement compared to three or four) outweighs the extra overhead (the call plus the bool compare), though.

Cheers,
Albrecht.

_______________________________________________
balsa-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/balsa-list
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcCEPemLFTtyGf4zATKlvDmfn2fgFAl4vS24ACgkQTKlvDmfn
2fgrqggAjnCEC7+6fOS+hxF1gnB6KstUguRyM30k/867CodNQFo7SSP7Lrh4xtrk
s7mygFDQEoT3+XMyU0x/tbu+YRG6l3B3JN9FkflTeQGJHoBKPhEJH0vqDaYblfsP
7UV771WrJjgQU0afVVOgYjLbsADpFTNwb9tKevWG9OSdqq442do9OBGoUc7yPM1z
eo2boFDaxC7M3WClDKczRglCK5/RM6+Fdi4JuEU4IpS05N/56GIPh14xdbRrA0ot
vTHrppxVHWax98WPamej/5JX4lI90NMqutMvIaKJq1X6vql2p4VvxzXShYbRY6es
0hOB0GgyrN4d9Xz78pyqJnIYZ9pyXQ==
=TBg2
-----END PGP SIGNATURE-----