aboutsummaryrefslogtreecommitdiff
path: root/fiv-view.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-01-24 01:20:37 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-01-24 02:48:38 +0100
commit991e74b99bbf344effe456f71c544a284f7afe14 (patch)
tree30093c454c7b4e7874e11153aa19c52c9e72a7bf /fiv-view.h
parent38670428dacaf44525db3710c8acea1bb543eab6 (diff)
downloadfiv-991e74b99bbf344effe456f71c544a284f7afe14.tar.gz
fiv-991e74b99bbf344effe456f71c544a284f7afe14.tar.xz
fiv-991e74b99bbf344effe456f71c544a284f7afe14.zip
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.
Diffstat (limited to 'fiv-view.h')
-rw-r--r--fiv-view.h3
1 files changed, 2 insertions, 1 deletions
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 {