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



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

Hi,

Please find attached a patch that moves loading of the library module
before the call to foo_get_type() that's supposedly in that library. 
With the patch I was able to get custom widgets to appear in glade
palette.


-- 
Tommi Komulainen <tommi komulainen nokia com>

--=-EPzpcue6zoS5lr2oX9Cs
Content-Disposition: attachment; filename=load-library.diff
Content-Type: text/plain; name=load-library.diff; charset=ISO-8859-15
Content-Transfer-Encoding: base64

LS0tIENoYW5nZUxvZwkyMDAzLTExLTI5IDE1OjQ0OjQzLjAwMDAwMDAwMCArMDIwMA0KKysrIENo
YW5nZUxvZwkyMDA0LTAxLTA4IDE4OjE0OjI3LjAwMDAwMDAwMCArMDIwMA0KQEAgLTEsMyArMSw5
IEBADQorMjAwNC0wMS0wOCAgVG9tbWkgS29tdWxhaW5lbiAgPHRvbW1pLmtvbXVsYWluZW5Abm9r
aWEuY29tPg0KKw0KKwkqIHNyYy9nbGFkZS13aWRnZXQtY2xhc3MuYzogbG9hZCB0aGUgbGlicmFy
eSBtb2R1bGUgYmVmb3JlIGF0dGVtcHRpbmcNCisJdG8gY2FsbCAqX2dldF90eXBlIHNpbmNlIHRo
ZSBmdW5jdGlvbiBjb3VsZCBiZSBsb2NhdGVkIGluIGRlcGVuZGVudA0KKwlsaWJyYXJpZXMuDQor
DQogMjAwMy0xMS0yOSAgUGFvbG8gQm9yZWxsaSAgPHBib3JlbGxpQGthdGFtYWlsLmNvbT4NCiAN
CiAJKiB3aWRnZXRzL2d0a21lbnViYXIueG1sOiBvdmVycmlkZSBmaWxsX2VtcHR5IHdpdGggaWdu
b3JlLg0KLS0tIHNyYy9nbGFkZS13aWRnZXQtY2xhc3MuYwkyMDAzLTExLTE5IDE4OjI0OjEwLjAw
MDAwMDAwMCArMDIwMA0KKysrIHNyYy9nbGFkZS13aWRnZXQtY2xhc3MuYwkyMDA0LTAxLTA4IDE2
OjM0OjA1LjA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