diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-08-27 18:07:49 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-08-27 18:07:49 +0300 |
commit | 61c1980e25cc5ce48d7c3902db1e39f6b92473f9 (patch) | |
tree | 250c99347b38c6f508cbe09cbd9fa828555dc729 | |
parent | c2105fa2a915ab23d9bc935681ff27e8e8d4f4a4 (diff) | |
download | sciteco-61c1980e25cc5ce48d7c3902db1e39f6b92473f9.tar.gz |
avoid g_prefix_error_literal(), which requires glib 2.70
This broke builds e.g. on Ubuntu 20.04.
Regression was introduced in 51bd183f064d0c0ea5e0184d9f6b6b62e5c01e50.
-rw-r--r-- | src/view.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |