summaryrefslogtreecommitdiff
path: root/pango/modules.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-10-13 17:20:41 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-10-13 17:20:41 +0000
commit6bed9d56b66a461f1cdc4b672ce10bc39a88baca (patch)
tree5361b51f74d96efb7749d356e4d1c47fffcc4f40 /pango/modules.c
parentb77f3f9ba3fc98c086d01440eef7771c58f9058d (diff)
downloadpango-6bed9d56b66a461f1cdc4b672ce10bc39a88baca.tar.gz
Bug 361938 – Can't include *-lang modules (./configure
2006-10-13 Behdad Esfahbod <behdad@gnome.org> Bug 361938 – Can't include *-lang modules (./configure --with-included-modules fails) * configure.in: * modules/Makefile.am: * pango/.cvsignore: * pango/Makefile.am: * pango/modules.c (init_modules): * pango/modules.h: Make included language engines work.
Diffstat (limited to 'pango/modules.c')
-rw-r--r--pango/modules.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pango/modules.c b/pango/modules.c
index 2c2b7321..301c098d 100644
--- a/pango/modules.c
+++ b/pango/modules.c
@@ -31,6 +31,7 @@
#include "pango-enum-types.h"
#include "pango-modules.h"
#include "pango-impl-utils.h"
+#include "modules.h"
typedef struct _PangoModule PangoModule;
typedef struct _PangoModuleClass PangoModuleClass;
@@ -536,6 +537,7 @@ static void
init_modules (void)
{
static gboolean init = FALSE;
+ int i;
if (init)
return;
@@ -545,6 +547,8 @@ init_modules (void)
/* Make sure that the type system is initialized */
g_type_init ();
+ for (i = 0; _pango_included_lang_modules[i].list; i++)
+ pango_module_register (&_pango_included_lang_modules[i]);
read_modules ();
}