Load GTK3 version of the VTE library when built against GTK3
This commit is contained in:
parent
3ae884c13f
commit
394f223b49
10
src/vte.c
10
src/vte.c
@ -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++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user