[gnome-photos] embed: Ignore changes to the item count while not in overview



commit 38630e9afdad547907533127eeac30974173ca94
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Apr 3 13:42:32 2013 +0200

    embed: Ignore changes to the item count while not in overview
    
    Original patch from Volker Sobek for gnome-documents.

 src/photos-embed.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-embed.c b/src/photos-embed.c
index aa7a193..7df7561 100644
--- a/src/photos-embed.c
+++ b/src/photos-embed.c
@@ -209,6 +209,11 @@ static void
 photos_embed_count_changed (PhotosEmbed *self, gint count)
 {
   PhotosEmbedPrivate *priv = self->priv;
+  PhotosWindowMode mode;
+
+  mode = photos_mode_controller_get_window_mode (priv->mode_cntrlr);
+  if (mode != PHOTOS_WINDOW_MODE_OVERVIEW)
+    return;
 
   if (count == 0)
     {


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