[eog] EogImage: Fix too early size-prepared emission



commit 5ae0b28eebc18260d01d23481b15bf1201e6ebfd
Author: Felix Riemann <friemann gnome org>
Date:   Sun May 17 16:18:00 2015 +0200

    EogImage: Fix too early size-prepared emission
    
    If an image without metadata support is loaded it could happen that
    the size-prepared signal was emitted without knowing the actual
    image size. That resulted in a smaller than necessary window size.
    Remove unneeded emission since the loader will make sure to emit the
    signal once the size is known.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748598

 src/eog-image.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/eog-image.c b/src/eog-image.c
index 089ec73..01d5c71 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -1086,8 +1086,6 @@ eog_image_real_load (EogImage *img,
                                        break;
                                }
 
-                               eog_image_emit_size_prepared (img);
-
                                priv->metadata_status = EOG_IMAGE_METADATA_NOT_AVAILABLE;
                        }
 


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