[gimp] app: forgot to follow API changes in test-config.c
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: forgot to follow API changes in test-config.c
- Date: Fri, 4 Oct 2019 19:59:19 +0000 (UTC)
commit 8976370bce1abf9b26696ebd1e288d0d5d162c44
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 4 21:58:49 2019 +0200
app: forgot to follow API changes in test-config.c
app/config/test-config.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/app/config/test-config.c b/app/config/test-config.c
index 1aff0a439c..a2cf7e456a 100644
--- a/app/config/test-config.c
+++ b/app/config/test-config.c
@@ -50,7 +50,7 @@ main (int argc,
{
GimpConfig *grid;
GimpConfig *grid2;
- const gchar *filename = "foorc";
+ GFile *file = g_file_new_for_path ("foorc");
gchar *header;
gchar *result;
GList *list;
@@ -82,10 +82,11 @@ main (int argc,
g_print (" done.\n");
g_print (" Serializing %s to '%s' ...",
- g_type_name (G_TYPE_FROM_INSTANCE (grid)), filename);
+ g_type_name (G_TYPE_FROM_INSTANCE (grid)),
+ gimp_file_get_utf8_name (file));
if (! gimp_config_serialize_to_file (grid,
- filename,
+ file,
"foorc", "end of foorc",
NULL, &error))
{
@@ -98,8 +99,10 @@ main (int argc,
G_CALLBACK (notify_callback),
NULL);
- g_print (" Deserializing from '%s' ...\n", filename);
- if (! gimp_config_deserialize_file (grid, filename, NULL, &error))
+ g_print (" Deserializing from '%s' ...\n",
+ gimp_file_get_utf8_name (file));
+
+ if (! gimp_config_deserialize_file (grid, file, NULL, &error))
{
g_print ("%s\n", error->message);
return EXIT_FAILURE;
@@ -136,7 +139,10 @@ main (int argc,
g_object_unref (grid2);
g_print (" Deserializing from gimpconfig.c (should fail) ...");
- if (! gimp_config_deserialize_file (grid, "gimpconfig.c", NULL, &error))
+
+ if (! gimp_config_deserialize_file (grid,
+ g_file_new_for_path ("gimpconfig.c"),
+ NULL, &error))
{
g_print (" OK, failed. The error was:\n %s\n", error->message);
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]