switch (i)
{
case 0:
- if (!g_path_is_absolute (tmp_buf->str)) {
- const gchar *abs_file_name = g_build_filename (module_file_dir, tmp_buf->str, NULL);
- g_string_assign (tmp_buf, abs_file_name);
- g_free ((gpointer) abs_file_name);
- }
+ if (!g_path_is_absolute (tmp_buf->str))
+ {
+ const gchar *lib_dir = pango_get_lib_subdirectory ();
+ const gchar *abs_file_name = g_build_filename (lib_dir,
+ MODULE_VERSION,
+ "modules",
+ tmp_buf->str,
+ NULL);
+ g_string_assign (tmp_buf, abs_file_name);
+ g_free ((gpointer) abs_file_name);
+ }
pair->module = find_or_create_module (tmp_buf->str);
break;
case 1: