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.
This commit is contained in:
2022-01-24 01:20:37 +01:00
parent 38670428da
commit 991e74b99b
3 changed files with 84 additions and 36 deletions

View File

@@ -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 {