[pyatspi2] tests: Remove calls to g_type_init
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] tests: Remove calls to g_type_init
- Date: Mon, 3 Oct 2022 18:50:18 +0000 (UTC)
commit 261151787824e55cb8ecc5b6eb78c8b28599ecb5
Author: Mike Gorse <mgorse suse com>
Date: Mon Oct 3 13:40:02 2022 -0500
tests: Remove calls to g_type_init
It has been deprecated for a long time. Fixes some compiler warnings. Add a
check for glib >= 2.36.0.
configure.ac | 6 +++---
tests/apps/component-app.c | 1 -
tests/apps/test-application.c | 2 --
3 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8e6c9e88..70a160ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,7 +62,7 @@ if test "$enable_tests" = "yes"; then
AC_SUBST(DBUS_LIBS)
AC_SUBST(DBUS_CFLAGS)
- PKG_CHECK_MODULES(GLIB, [glib-2.0])
+ PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.36.0])
AC_SUBST(GLIB_LIBS)
AC_SUBST(GLIB_CFLAGS)
@@ -70,11 +70,11 @@ if test "$enable_tests" = "yes"; then
AC_SUBST(AT_SPI_LIBS)
AC_SUBST(AT_SPI_CFLAGS)
- PKG_CHECK_MODULES(GOBJ, [gobject-2.0 >= 2.0.0])
+ PKG_CHECK_MODULES(GOBJ, [gobject-2.0 >= 2.36.0])
AC_SUBST(GOBJ_LIBS)
AC_SUBST(GOBJ_CFLAGS)
- PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.0.0])
+ PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.36.0])
AC_SUBST(GMODULE_LIBS)
AC_SUBST(GMODULE_CFLAGS)
diff --git a/tests/apps/component-app.c b/tests/apps/component-app.c
index 8231ca81..de195f0b 100644
--- a/tests/apps/component-app.c
+++ b/tests/apps/component-app.c
@@ -39,7 +39,6 @@ test_init (gchar *path)
g_error("No test data path provided");
tdata_path = path;
- g_type_init();
for(i = 0; i < sizeof(comps) / sizeof(comps[0]); i++)
{
MyAtkComponent *mycomp = MY_ATK_COMPONENT(g_object_new(MY_TYPE_ATK_COMPONENT, NULL));
diff --git a/tests/apps/test-application.c b/tests/apps/test-application.c
index c8b2b062..8d0b5954 100644
--- a/tests/apps/test-application.c
+++ b/tests/apps/test-application.c
@@ -277,8 +277,6 @@ main(int argc, char *argv[])
if (amodule_path == NULL)
g_error("No atspi module provided");
- g_type_init();
-
setup_atk_util();
load_test_module(tmodule_path, tdata_path);
load_atspi_module(amodule_path, &argc, &argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]