diff options
author | Philip Withnall <withnall@endlessm.com> | 2017-03-15 11:14:06 +0000 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2017-03-15 11:14:06 +0000 |
commit | 192bcf3ec7752aaf03f19a1f801a9d66cf306a69 (patch) | |
tree | 32a4ec69cf5f54d2d85226afd62bc5aea5498665 | |
parent | 684f95e8845be4f9efc434ea6456bee99b2303ac (diff) | |
download | libgdata-192bcf3ec7752aaf03f19a1f801a9d66cf306a69.tar.gz |
build: Bump minimum GLib dependency to 2.38.0
Since the 0.17.7 release, we’ve actually depended on API from GLib
2.38.0 (G_TEST_DIST), so this will just cause earlier build failure than
before.
This means we can drop some backwards compatibility code for older GLib
releases.
Spotted by Mart Raudsepp in
https://bugzilla.gnome.org/show_bug.cgi?id=780081#c1.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | demos/scrapbook/scrapbook.c | 3 | ||||
-rw-r--r-- | gdata/tests/common.c | 4 |
4 files changed, 3 insertions, 10 deletions
@@ -13,7 +13,7 @@ libgdata is API and ABI stable. Dependencies ============ - • glib-2.0 ≥ 2.31.0 + • glib-2.0 ≥ 2.38.0 • libxml-2.0 • gio-2.0 ≥ 2.17.3 • libsoup-2.4 ≥ 2.42.0 diff --git a/configure.ac b/configure.ac index 54f2701f..5cfb45fc 100644 --- a/configure.ac +++ b/configure.ac @@ -35,8 +35,8 @@ AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal]) AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums]) # Requirements -GLIB_REQS=2.31.0 -GLIB_MIN_REQUIRED=GLIB_VERSION_2_32 +GLIB_REQS=2.38.0 +GLIB_MIN_REQUIRED=GLIB_VERSION_2_38 GLIB_MAX_ALLOWED='(G_ENCODE_VERSION(2, 38))' GIO_REQS=2.17.3 SOUP_REQS=2.42.0 diff --git a/demos/scrapbook/scrapbook.c b/demos/scrapbook/scrapbook.c index 534dc3ff..399fba76 100644 --- a/demos/scrapbook/scrapbook.c +++ b/demos/scrapbook/scrapbook.c @@ -644,9 +644,6 @@ main(int argc, char **argv) scrapbook = g_slice_new (struct _ScrapData); scrapbook->max_rows = 5; -#if !GLIB_CHECK_VERSION (2, 35, 0) - g_type_init (); -#endif gtk_init (&argc, &argv); scrapbook->currentCol = 0; diff --git a/gdata/tests/common.c b/gdata/tests/common.c index a707221a..0815ccfa 100644 --- a/gdata/tests/common.c +++ b/gdata/tests/common.c @@ -55,10 +55,6 @@ gdata_test_init (int argc, char **argv) setlocale (LC_ALL, ""); -#if !GLIB_CHECK_VERSION (2, 35, 0) - g_type_init (); -#endif - /* Parse the custom options */ for (i = 1; i < argc; i++) { if (strcmp ("--no-interactive", argv[i]) == 0 || strcmp ("-ni", argv[i]) == 0) { |