Use dlopen() to choose gtk2 or gtk3 at runtime - a simple demo
- From: Wen-Yen Chuang <caleb calno com>
- To: gtk-app-devel-list gnome org
- Subject: Use dlopen() to choose gtk2 or gtk3 at runtime - a simple demo
- Date: Sun, 23 Oct 2011 00:23:45 +0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1,SHA512
Hello,
I am not an expert at C, but I wrote a simple demo to support gtk2 and
gtk3 at the same time.
My program only links to glib, and uses dlopen() to find system GTK+.
The build-time needs only one GTK+ (gtk2 or gtk3), and the binary can
run happily with both gtk2 runtime and gtk3 runtime.
It is easy and interesting. I think some of you may want to write
another program to do similar things. :-)
Introduction:
http://evilvte.blogspot.com/2011/10/trick-gtk2-gtk3-coexist.html
Download link is listed at right side of the blog.
Kind regards
Wen-Yen Chuang (caleb)
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAk6i7hEACgkQdEpXpumNYVkf9gCdH3jarz5oo2+zV3aAfubKD58Z
rDMAmgKxajlTN318Gftk+U1LiY9a7+v5iQIcBAEBCgAGBQJOou4RAAoJELc3H0m+
i6gZ44UP/jsiaCBP5dRH5T9wqIvaiXN0EVgV6clEFhcaHdsZGGJUsNOpP55LD83c
WazlHit6wadXIBdcaB41V8QWwbEFUObH/FNUfwAFaejqV0+Tus/x+RfAy6VImDVS
a2593gupeYUzbSd/qttop0ivslyl1Hr01irW2zwIyUbebyoaff8eqZ622/UFSFqr
Z7Uj9ewuatI1hlx3GHsTr2+UfFHYBGcWg0B3tUzgQ6Gh+lNVpR/0KZ9kX6x7EPkR
UCrNNH0j0vpE+AjZ09uhGRDY4O8wwkz5UdqAOfRNzQvLLSGRVntOdqqWHS2L2FZ/
Hb2u9gW4WXvGn7b4ClK5ps9zUTDLWy+GCwfxpAlg8pOo+BxfLp1yrFDSacJ0JNeO
47vpeJOzx2GfLsE9lAuerVQlXVe7Itol+2Hh8ReKTwgENq0PuTFLJh7bZIVPGsLc
jv78kZ4aEVhV3ZwStiyTPozJ619nZwNkC5/7pRUUGohQ9f3+J8MZGSF3krX2re3f
r0AEg3Hejal522yRieaXXarUobCyicAYdekHjVFqAqVorB1QBRuxVcM9m/bFUjon
pjIA94OXuzTT28sR0BJoZajxObdKO7iJPWKkYGPzDZdGHEcBlWSr6M1MYcN+4lMu
yRmeQqxmiGfZ6dAoCx/DgU3+yRnsDF8L6PE6+i+fMQ1T/OL7sqOt
=YE+d
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]