From 394f223b493a4be4185ca35a524bb69f67b3cea8 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Sun, 16 Sep 2012 00:12:19 +0200 Subject: [PATCH] Load GTK3 version of the VTE library when built against GTK3 --- src/vte.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/vte.c b/src/vte.c index 6e24aaba..00da87ce 100644 --- a/src/vte.c +++ b/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++) {