From 991e74b99bbf344effe456f71c544a284f7afe14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 24 Jan 2022 01:20:37 +0100 Subject: Redirect image open failure messages Pop-up dialogs are quite annoying, as is not being able to iterate over broken images. This will also be useful for warnings and asynchronous loading. --- fiv-view.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fiv-view.h') diff --git a/fiv-view.h b/fiv-view.h index 54093b7..7df00e0 100644 --- a/fiv-view.h +++ b/fiv-view.h @@ -23,7 +23,8 @@ G_DECLARE_FINAL_TYPE(FivView, fiv_view, FIV, VIEW, GtkWidget) /// Try to open the given file, synchronously, to be displayed by the widget. -gboolean fiv_view_open(FivView *self, const gchar *uri, GError **error); +/// The current image is cleared on failure. +gboolean fiv_view_set_uri(FivView *self, const gchar *uri); // And this is how you avoid glib-mkenums. typedef enum _FivViewCommand { -- cgit v1.2.3