Load GTK3 version of the VTE library when built against GTK3

This commit is contained in:
Colomban Wendling 2012-09-16 00:12:19 +02:00
parent 3ae884c13f
commit 394f223b49

View File

@ -200,8 +200,14 @@ void vte_init(void)
if (module == NULL)
{
gint i;
const gchar *sonames[] = { "libvte.so", "libvte.so.4",
"libvte.so.8", "libvte.so.9", NULL };
const gchar *sonames[] = {
#if GTK_CHECK_VERSION(3, 0, 0)
"libvte2_90.so", "libvte2_90.so.9",
#else
"libvte.so", "libvte.so.4", "libvte.so.8", "libvte.so.9",
#endif
NULL
};
for (i = 0; sonames[i] != NULL && module == NULL; i++)
{