SF.net SVN: geany: [1229] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Thu Jan 25 15:45:14 UTC 2007
Revision: 1229
http://svn.sourceforge.net/geany/?rev=1229&view=rev
Author: eht16
Date: 2007-01-25 07:45:14 -0800 (Thu, 25 Jan 2007)
Log Message:
-----------
Applied patch from Jeff Pohlmeyer to improve loading of the VTE library.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/vte.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-24 22:48:52 UTC (rev 1228)
+++ trunk/ChangeLog 2007-01-25 15:45:14 UTC (rev 1229)
@@ -1,3 +1,9 @@
+2007-01-25 Enrico Tröger <enrico.troeger at uvena.de>
+
+ * src/vte.c: Applied patch from Jeff Pohlmeyer to improve loading of
+ the VTE library.
+
+
2007-01-24 Enrico Tröger <enrico.troeger at uvena.de>
* data/filetype_extensions.conf, src/filetypes.c:
Modified: trunk/src/vte.c
===================================================================
--- trunk/src/vte.c 2007-01-24 22:48:52 UTC (rev 1228)
+++ trunk/src/vte.c 2007-01-25 15:45:14 UTC (rev 1229)
@@ -134,11 +134,14 @@
}
else
{
- module = g_module_open("libvte.so", G_MODULE_BIND_LAZY);
- // try to fallback to different versions of libvte.so.x
- if (module == NULL) module = g_module_open("libvte.so.4", G_MODULE_BIND_LAZY);
- else if (module == NULL) module = g_module_open("libvte.so.8", G_MODULE_BIND_LAZY);
- else if (module == NULL) module = g_module_open("libvte.so.9", G_MODULE_BIND_LAZY);
+ gint i;
+ const gchar *sonames[] = { "libvte.so", "libvte.so.4",
+ "libvte.so.8", "libvte.so.9", NULL };
+
+ for (i = 0; sonames[i] != NULL && module == NULL; i++ )
+ {
+ module = g_module_open(sonames[i], G_MODULE_BIND_LAZY);
+ }
}
if (module == NULL)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list