From d7589d48d26289f333fdd623a21e76c5fcb07c8d Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 20 Mar 2011 14:01:42 +0000 Subject: Build the module folder compatible with git master and 1.0 --- src/paprefs.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/paprefs.cc b/src/paprefs.cc index 3da4be0..21fdc95 100644 --- a/src/paprefs.cc +++ b/src/paprefs.cc @@ -639,14 +639,7 @@ void MainWindow::readFromGConf() { gchar * MainWindow::modulePath(const gchar *name) { gchar *path, *pulsedir, *c; - pulsedir = g_strdup_printf ("pulse-%s", pa_get_library_version ()); - - for (c = pulsedir + strlen ("pulse-"); *c != '\0'; c++) { - if (*c == '-') { - *c = '\0'; - break; - } - } + pulsedir = g_strdup_printf ("pulse-%d.%d", PA_MAJOR, PA_MINOR); path = g_build_filename (MODLIBDIR, pulsedir, "modules", name, NULL); g_free (pulsedir); -- cgit