[eog] EogScrollView: Ensure view is redrawn if image is unset



commit 85043d5c75bdd606dc4a059761582d007fdd967e
Author: Felix Riemann <friemann gnome org>
Date:   Tue Oct 4 19:33:49 2016 +0200

    EogScrollView: Ensure view is redrawn if image is unset
    
    Otherwise the image could stay visible until the user triggers
    a redraw, for example by mouse clicking.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772162

 src/eog-scroll-view.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index f85d9d2..ebd4241 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -1986,6 +1986,8 @@ eog_scroll_view_set_image (EogScrollView *view, EogImage *image)
                        priv->frame_changed_id = g_signal_connect (image, "next-frame", 
                                                                    (GCallback) display_next_frame_cb, view);
                }
+       } else {
+               gtk_widget_queue_draw (GTK_WIDGET (priv->display));
        }
 
        priv->image = image;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]