From 61c1980e25cc5ce48d7c3902db1e39f6b92473f9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 27 Aug 2025 18:07:49 +0300 Subject: avoid g_prefix_error_literal(), which requires glib 2.70 This broke builds e.g. on Ubuntu 20.04. Regression was introduced in 51bd183f064d0c0ea5e0184d9f6b6b62e5c01e50. --- src/view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view.c b/src/view.c index e44b386..790f832 100644 --- a/src/view.c +++ b/src/view.c @@ -381,7 +381,7 @@ teco_view_load_from_stdin(teco_view_t *ctx, gboolean clear, GError **error) g_io_channel_set_buffered(channel, FALSE); if (!teco_view_load_from_channel(ctx, channel, clear, error)) { - g_prefix_error_literal(error, "Error reading stdin: "); + g_prefix_error(error, "Error reading stdin: "); return FALSE; } @@ -610,7 +610,7 @@ teco_view_save_to_stdout(teco_view_t *ctx, GError **error) g_io_channel_set_buffered(channel, TRUE); if (!teco_view_save_to_channel(ctx, channel, error)) { - g_prefix_error_literal(error, "Error writing to stdout: "); + g_prefix_error(error, "Error writing to stdout: "); return FALSE; } -- cgit v1.2.3