From 5001668d783804f291624b7b0430da4b5a3432fd Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 30 Mar 2016 14:32:18 +0300 Subject: auto-reload unmodified images when their file is changed from https://git.gnome.org/browse/eog/commit/?id=3764db24f7d5e570b39894a05ba71a09012eea24 fixes https://github.com/mate-desktop/eom/issues/69 --- src/eom-window.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/eom-window.c b/src/eom-window.c index 2981f0f..ff4f712 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -806,6 +806,12 @@ image_file_changed_cb (EomImage *img, EomWindow *window) if (window->priv->needs_reload_confirmation == FALSE) return; + if (!eom_image_is_modified (img)) { + /* Auto-reload when image is unmodified */ + eom_window_reload_image (window); + return; + } + window->priv->needs_reload_confirmation = FALSE; info_bar = gtk_info_bar_new_with_buttons (_("_Reload"), -- cgit v1.2.1