[Patch] unify wrapped label creation

Albrecht Dreß <[email protected]> Sat, 25 Jan 2020 15:27:36 +0100
Newsgroups gmane.comp.gnome.apps.balsa
Message-ID <[email protected]>
Hi all,

as a follow-up to the recent discussion re. label wrapping and alignment, attached is a patch which attempts to clean up this issue a little bit:
* create a new helper for wrapped labels, including the halign and xalign properties and
* remove calls for setting default values (like GTK_JUSTIFY_LEFT or wrap = FALSE).

The patch works with the master and gmime3 branches, with a 2-line offset in libbalsa/misc.c for the latter.

Opinions?

Cheers,
Albrecht.

---
Patch details:
- libbalsa/misc.[ch]: add new helper libbalsa_create_wrap_label() for creating a label with word wrap and with or without markup; libbalsa_create_grid_label(): add missing xalign
- libbalsa/html.c, libbalsa/libbalsa-gpgme-cb.c, libbalsa/libbalsa-gpgme-widgets.c, src/balsa-mime-widget-message.c, src/balsa-mime-widget-text.c, src/balsa-mime-widget-vcalendar.c, src/folder-conf.c, src/sendmsg-window.c: use libbalsa_create_wrap_label()
- src/pref-manager.c: use libbalsa_create_wrap_label(); remove redundant calls to set default value
- src/print-gtk.c: add_font_button(), add_margin_spinbtn(): add missing xalign, remove default justify; add_margin_spinbtn(): do not wrap the (short) units string; create_options_group(): use libbalsa_create_wrap_label()

_______________________________________________
balsa-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/balsa-list
label-wrap.diff.gz (application/gzip, 3.9 KB) - not displayed
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcCEPemLFTtyGf4zATKlvDmfn2fgFAl4sUFgACgkQTKlvDmfn
2fhefwf9G43YxM23OzQN6fgTjow8ib0P33Ku26MBAvj8GKNLKXX2Mci9V9iHF7uS
m6XIHzz/24ZQUcNA1xEDnPLruIuIMhSZF1xHXMM8qHT4GcwN6Vkvc+FMDy8nzW6T
xCW4DtVJfT9wZo19KbiLIDi7Ihgp7DP94/3wwbtrG65uv/OOk4vo2FFJjv1KwgOy
Lw6yoq5t4Wtp4CMDAbvP94WI9WLXwjAzjbcIy/1VkLlstX0OK3gpRK9mrzvkMN2+
tghMU/QStAdKVyBYnKdwq7Ehft0EvP7cdEDc0Js73infA8JwBYxK+wu1mR9bAUuq
krR7MOvA+tqWkRotSqABDK9scenvaw==
=GAY0
-----END PGP SIGNATURE-----