[Glade-devel] [glade3, patch] load library module before calling *_get_type ()



--=-FV5vI/OLyQXaUNHPwP85
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Fri, 2004-01-09 at 16:51, ext Joaquin Cuenca Abela wrote:

That makes perfect sense to me.  If none else
disagrees, feel free to commit a patch with your
suggested changes, which should equal to your earliest
patch + this change.

I'll rather attach a followup patch to be applied after the previous
one.  They are solving slightly different issues.  The first one simply
fixed the library loading.  This one makes it more general and
convenient (unfortunately library="gnomeui-2" is pretty useless without
wrappers)


-- 
Tommi Komulainen <tommi komulainen nokia com>

--=-FV5vI/OLyQXaUNHPwP85
Content-Disposition: attachment; filename=library-name.diff
Content-Type: text/x-patch; name=library-name.diff; charset=ISO-8859-15
Content-Transfer-Encoding: base64

ZGlmZiAtdSBDaGFuZ2VMb2cgQ2hhbmdlTG9nDQotLS0gQ2hhbmdlTG9nCTIwMDQtMDEtMDggMTg6
MTQ6MjcuMDAwMDAwMDAwICswMjAwDQorKysgQ2hhbmdlTG9nCTIwMDQtMDEtMDkgMTc6Mjc6NTQu
MDAwMDAwMDAwICswMjAwDQpAQCAtMSwzICsxLDEzIEBADQorMjAwNC0wMS0wOSAgVG9tbWkgS29t
dWxhaW5lbiAgPHRvbW1pLmtvbXVsYWluZW5Abm9raWEuY29tPg0KKw0KKwkqIHNyYy9nbGFkZS1j
YXRhbG9nLmMNCisJKiBzcmMvZ2xhZGUtd2lkZ2V0LWNsYXNzLmMNCisJKiB3aWRnZXRzL2d0ay1h
ZGRpdGlvbmFsLnhtbA0KKwkqIHdpZGdldHMvZ3RrLWJhc2UueG1sOiBJbnN0ZWFkIG9mIHBsYXlp
bmcgdHJpY2tzIHdpdGggdGhlIGxpYnJhcnkNCisJZmlsZW5hbWUsIHVzZSB0aGUgZ2l2ZW4gbmFt
ZSB2ZXJiYXRpbSBhbmQgbGV0IEdNb2R1bGUgaGFuZGxlIHBsYXRmb3JtDQorCXNwZWNpZmljcy4g
IExvYWQgdGhlIGxpYnJhcnkg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