[eog] EogMetadataSidebar: Clear folder label if no image is set



commit 2549897af7a0cd3111493de5533d0689826d732e
Author: Felix Riemann <friemann gnome org>
Date:   Fri May 22 22:45:16 2015 +0200

    EogMetadataSidebar: Clear folder label if no image is set

 src/eog-metadata-sidebar.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-metadata-sidebar.c b/src/eog-metadata-sidebar.c
index 782aedb..bf07830 100644
--- a/src/eog-metadata-sidebar.c
+++ b/src/eog-metadata-sidebar.c
@@ -102,7 +102,8 @@ eog_metadata_sidebar_update_general_section (EogMetadataSidebar *sidebar)
                gtk_label_set_text (GTK_LABEL (priv->size_label), NULL);
                gtk_label_set_text (GTK_LABEL (priv->type_label), NULL);
                gtk_label_set_text (GTK_LABEL (priv->filesize_label), NULL);
-               return;         
+               gtk_label_set_text (GTK_LABEL (priv->folder_label), NULL);
+               return;
        }
 
        eog_image_get_size (img, &width, &height);


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