Q: are specific C marshallers obsolete these days?
Albrecht Dreß <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.balsa |
|---|---|
| Message-ID | <[email protected]> |
Hi all, while playing with the extension for LibBalsaServer's GET_PASSWORD signal to fix the issue of certificate password retrieval, I stumbled over the use of specific C marshallers for our custom signals. IIRC, they have been used this way since many, many years in Balsa. However, the GObject Reference manual, section “How to create and use signals” [1] states: “The C signal marshaller should always be NULL, in which case the best marshaller for the given closure type will be chosen by GLib. This may be an internal marshaller specific to the closure type, or g_cclosure_marshal_generic, which implements generic conversion of arrays of parameters to C callback invocations. GLib used to require the user to write or generate a type-specific marshaller and pass that, but that has been deprecated in favour of automatic selection of marshallers.” For me, this raises the question whether our custom marshallers are /really/ still needed, and for what reason? Cheers, Albrecht. [1] <https://developer.gnome.org/gobject/stable/howto-signals.html> _______________________________________________ balsa-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/balsa-list
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEcCEPemLFTtyGf4zATKlvDmfn2fgFAlvYu6QACgkQTKlvDmfn 2fg3rQgAkLji9WEITeWcehfqrbDqCOznEfIg2EAjlNjA82ZD9TNqkfmw7f1wahhd ABd+ZUc3W9PnW76Mv2ap92Jv2AudY4FA0BOIkmKMFAD/vE10dZQZ4wAUcK2qhnzw D0aVDxbZWjeMkqJnYuNtEzN2e9pvUMGpNN2HypuZLQOIxgUM02vJ+BZYmvbbX+ea Wrus5sdUKhbUbiCk19N6PwCs+qtcqB55qJ68oWPpWxHwq0mr8IgWzz0easnpk/Ff UR1HNbZn+TtjX+mp1RvldlFLdxkl1sQ2Gij5m2ft3eXEhFRY+/3+/OS2GyM+cBQ2 Iv/aFer204PQZW8w7ngZBtD/Lr9FFw== =JWPr -----END PGP SIGNATURE-----