[epiphany/overview] ephy-location-controller: active location is NULL when in overview mode



commit 6c47d2ac2d45be1c92633f0b16ce8186dd6d5376
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed Aug 8 19:35:41 2012 +0300

    ephy-location-controller: active location is NULL when in overview mode
    
    When EphyLocationEntry queries for the location, return NULL if we're
    in the overview mode.

 src/ephy-location-controller.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-location-controller.c b/src/ephy-location-controller.c
index 48c55c5..4c9ed63 100644
--- a/src/ephy-location-controller.c
+++ b/src/ephy-location-controller.c
@@ -228,7 +228,10 @@ get_location_cb (EphyLocationEntry *entry,
 {
 	EphyLocationControllerPrivate *priv = controller->priv;
 	EphyEmbed *embed;
-	
+
+	if (ephy_window_get_overview_mode (priv->window))
+		return NULL;
+
 	embed = ephy_embed_container_get_active_child 
 	  (EPHY_EMBED_CONTAINER (ephy_window_get_notebook (priv->window)));
 



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