[patch] xfce-utils/xfrun/xfcombo.i
Maarten Boekhold
boekhold at emirates.net.ae
Thu Sep 16 16:15:04 CEST 2004
Hi,
In the spirit of my long explanation on the naming of loadable modules
under cygwin, here's a patch that makes xfrun correctly load the
xfce4_combo library. There is no cygwin specific if/then/else stuff
going on, as the chance should still do the correct thing on other
platforms. Please consider applying.
Maarten
Index: xfce-utils/xfrun/xfcombo.i
===================================================================
RCS file: /cvsroot/xfce/xfce4/xfce-utils/xfrun/xfcombo.i,v
retrieving revision 1.7
diff -u -r1.7 xfcombo.i
--- xfce-utils/xfrun/xfcombo.i 21 Jul 2004 16:10:28 -0000 1.7
+++ xfce-utils/xfrun/xfcombo.i 16 Sep 2004 14:12:45 -0000
@@ -80,12 +80,12 @@
xfc_combo_functions *load_xfc(void){
xfc_combo_functions *(*module_init)(void) ;
- gchar *library, *module;
+ gchar *module_dir, *module;
if (xfc_fun) return xfc_fun;
- library=g_strconcat("libxfce4_combo.",G_MODULE_SUFFIX, NULL);
- module = g_build_filename (LIBDIR, "xfce4", "modules",library, NULL);
+ module_dir = g_build_filename(LIBDIR, "xfce4", "modules", NULL);
+ module = g_module_build_path(module_dir, "xfce4_combo");
xfc_cm=g_module_open (module, 0);
if (!xfc_cm) {
@@ -104,7 +104,7 @@
#ifdef DEBUG
g_message ("module %s successfully loaded", library);
#endif
- g_free(library);
+ g_free(module_dir);
g_free(module);
return xfc_fun;
}
More information about the Xfce4-dev
mailing list