[eog] Update EogWindow's image handle when selecting already loaded images



commit a3b769506abbbf7b24547b95c9c99349e99d44c0
Author: Felix Riemann <friemann gnome org>
Date:   Tue Aug 9 21:57:35 2011 +0200

    Update EogWindow's image handle when selecting already loaded images
    
    https://bugzilla.gnome.org/show_bug.cgi?id=655889

 src/eog-window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index af670e2..55246b1 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -1495,6 +1495,9 @@ handle_image_selection_changed_cb (EogThumbView *thumbview, EogWindow *window)
 	}
 
 	if (eog_image_has_data (image, EOG_IMAGE_DATA_IMAGE)) {
+		if (priv->image != NULL)
+			g_object_unref (priv->image);
+		priv->image = image;
 		eog_window_display_image (window, image);
 		return;
 	}



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