[Patch] migrate print objects to new scheme

Albrecht Dreß <[email protected]> Sat, 29 Jun 2019 14:23:11 +0200
Newsgroups gmane.comp.gnome.apps.balsa
Message-ID <[email protected]>
Hi all,

attached is a larger patch which migrates the various print objects to the modern GObject scheme using G_DECLARE_*_TYPE() and G_DEFINE_TYPE().  The main difficulty was the elimination of the direct access to the internal fields of BalsaPrintObject, i.e. the surrounding rectangle of the respective object, the page number and the logical depth.  I added setters/getters for this purpose, which required some refactoring in the derived classes.  However, IMO the result is actually cleaner…

Affected files are:
src/balsa-print-object-decor.[ch], src/balsa-print-object-default.[ch], src/balsa-print-object-header.[ch], src/balsa-print-object-html.[ch], src/balsa-print-object-image.[ch], src/balsa-print-object-text.[ch], src/balsa-print-object.[ch], src/print-gtk.c

Opinions?

Best,
Albrecht.

_______________________________________________
balsa-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/balsa-list
balsa-print-new-obj.diff.bz2 (application/x-bzip, 14.8 KB) - not displayed
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcCEPemLFTtyGf4zATKlvDmfn2fgFAl0XWC8ACgkQTKlvDmfn
2fhcxAgAtrRQU7UD3Hjtg2uq7A08PR88Wr8txeGwpE8s7EIRFe4R+22MHh6DtVRK
dQOf14w0g/eqnx4Qvq/l/knayaQ7Cg49yWfN5UE+DmEwgANsr8kWPMg6UcGt72i4
CWy3A/Rt9Lot2TVpDHb1ebENtrG15DHjex0vgLCTv4AJ40hn6c8GDXpLAXTHiM/c
8WnBwkmeH/VkEa8In9B4By3imDu4wp/zi0uUdx1kNzBHdRjXOHw6w6S/cTVNzizb
cnQyj/vR4h/ZVxdO4yWrW4iHo1EWElAT630UFarKgfGsTQPz8K4uKl7bkfzP6FPp
8NwnNszZTT6Olv7wegvVIMD0Bd+SHA==
=X1pF
-----END PGP SIGNATURE-----