editor: Drop g_type_init() call
HAVE_PANGO is not in any AC_DEFINE(), so the check is just wrong. g_type_init() was never called, which is fine since GLib 2.36 anyway. It is better not to have a wrong usage of HAVE_PANGO here. Just check for GLib 2.36 in configure.ac instead. Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
46ffea638d
commit
db776dbecf
|
@ -1604,10 +1604,6 @@ main(int argc, char *argv[])
|
|||
|
||||
memset(&editor, 0, sizeof editor);
|
||||
|
||||
#ifdef HAVE_PANGO
|
||||
g_type_init();
|
||||
#endif
|
||||
|
||||
editor.display = display_create(&argc, argv);
|
||||
if (editor.display == NULL) {
|
||||
fprintf(stderr, "failed to create display: %m\n");
|
||||
|
|
|
@ -288,10 +288,6 @@ main(int argc, char *argv[])
|
|||
|
||||
memset(&stacking, 0, sizeof stacking);
|
||||
|
||||
#ifdef HAVE_PANGO
|
||||
g_type_init();
|
||||
#endif
|
||||
|
||||
stacking.display = display_create(&argc, argv);
|
||||
if (stacking.display == NULL) {
|
||||
fprintf(stderr, "Failed to create display: %m\n");
|
||||
|
|
|
@ -420,7 +420,7 @@ if test x$enable_clients = xyes; then
|
|||
[AC_ERROR([cairo-egl not used because $CAIRO_EGL_PKG_ERRORS])])],
|
||||
[have_cairo_egl=no])
|
||||
|
||||
PKG_CHECK_MODULES(PANGO, [pangocairo], [have_pango=yes], [have_pango=no])
|
||||
PKG_CHECK_MODULES(PANGO, [pangocairo pango glib-2.0 >= 2.36], [have_pango=yes], [have_pango=no])
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(resize-optimization,
|
||||
|
|
Loading…
Reference in New Issue