[eog] EogImage: Slight optimization of private data structure



commit 08a8460a6a3aaea65d25b8f94007be4551ee184a
Author: Felix Riemann <friemann gnome org>
Date:   Tue Dec 17 15:53:10 2013 +0100

    EogImage: Slight optimization of private data structure
    
    - Remove/Disable unused members
    - Close memory hole on 64-bit

 src/eog-image-private.h |    9 +++++----
 src/eog-image.c         |    3 +--
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/eog-image-private.h b/src/eog-image-private.h
index b03021d..00cf7de 100644
--- a/src/eog-image-private.h
+++ b/src/eog-image-private.h
@@ -39,13 +39,12 @@ struct _EogImagePrivate {
 
        EogImageStatus    status;
        EogImageStatus    prev_status;
-       gboolean          is_monitored;
-        EogImageMetadataStatus metadata_status;
+       EogImageMetadataStatus metadata_status;
 
-       GdkPixbuf        *image;
+       gboolean          is_playing;
        GdkPixbufAnimation     *anim;
        GdkPixbufAnimationIter *anim_iter;
-       gboolean          is_playing;
+       GdkPixbuf        *image;
        GdkPixbuf        *thumbnail;
 #ifdef HAVE_RSVG
        RsvgHandle       *svg;
@@ -62,9 +61,11 @@ struct _EogImagePrivate {
        guint             exif_chunk_len;
        guchar           *exif_chunk;
 
+#if 0
        /* Holds IPTC raw data */
        guchar           *iptc_chunk;
        guint             iptc_chunk_len;
+#endif
 
        gboolean          modified;
        gboolean          file_is_changed;
diff --git a/src/eog-image.c b/src/eog-image.c
index 50f23d0..e612240 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -310,8 +310,7 @@ eog_image_init (EogImage *img)
        img->priv->file_is_changed = FALSE;
        g_mutex_init (&img->priv->status_mutex);
        img->priv->status = EOG_IMAGE_STATUS_UNKNOWN;
-        img->priv->metadata_status = EOG_IMAGE_METADATA_NOT_READ;
-       img->priv->is_monitored = FALSE;
+       img->priv->metadata_status = EOG_IMAGE_METADATA_NOT_READ;
        img->priv->undo_stack = NULL;
        img->priv->trans = NULL;
        img->priv->trans_autorotate = NULL;


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