[devhelp] Take advantage of g_file_peek_path()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] Take advantage of g_file_peek_path()
- Date: Sun, 1 Apr 2018 11:33:10 +0000 (UTC)
commit b83fa74824bfbe0573e997eac65ee590bd88d6e7
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Apr 1 13:30:00 2018 +0200
Take advantage of g_file_peek_path()
README | 2 +-
meson.build | 2 +-
unit-tests/test-util.c | 5 ++---
3 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/README b/README
index 3975d5e..839d209 100644
--- a/README
+++ b/README
@@ -8,7 +8,7 @@ The Devhelp web page:
Dependencies
------------
-- glib >= 2.40
+- glib >= 2.56
- gtk+ >= 3.22
- webkit2gtk-4.0 >= 2.19.2
- gsettings-desktop-schemas
diff --git a/meson.build b/meson.build
index 1eaf23e..2901a2f 100644
--- a/meson.build
+++ b/meson.build
@@ -32,7 +32,7 @@ lt_age=0
LIBDEVHELP_LT_VERSION='@0@.@1@.@2@'.format(lt_current, lt_revision, lt_age)
libdevhelp_deps_array = [
- ['gio-2.0', '>= 2.40'],
+ ['gio-2.0', '>= 2.56'],
['gtk+-3.0', '>= 3.22'],
['webkit2gtk-4.0', '>= 2.19.2']
]
diff --git a/unit-tests/test-util.c b/unit-tests/test-util.c
index ce13558..ffe6721 100644
--- a/unit-tests/test-util.c
+++ b/unit-tests/test-util.c
@@ -39,7 +39,7 @@ check_get_possible_index_files (const gchar *book_directory_path,
gchar *expected_basename;
gchar *basename;
gchar *expected_path;
- gchar *path;
+ const gchar *path;
switch (i) {
case 0:
@@ -66,13 +66,12 @@ check_get_possible_index_files (const gchar *book_directory_path,
g_assert_cmpstr (basename, ==, expected_basename);
expected_path = g_build_filename (book_directory_path, expected_basename, NULL);
- path = g_file_get_path (index_file);
+ path = g_file_peek_path (index_file);
g_assert_cmpstr (path, ==, expected_path);
g_free (expected_basename);
g_free (basename);
g_free (expected_path);
- g_free (path);
}
g_object_unref (book_directory);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]