[Sugar-devel] [PATCH Browse] Update the URL entry text when the address is changed SL #3564

Manuel Quiñones manuq at laptop.org
Fri May 4 08:42:12 EDT 2012


The WebEntry is not updating the text when changing the address, now
it does the same as when the title is changed.

Signed-off-by: Manuel Quiñones <manuq at laptop.org>
---
 webtoolbar.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/webtoolbar.py b/webtoolbar.py
index d0f2dc9..e4e647a 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -80,6 +80,8 @@ class WebEntry(iconentry.IconEntry):
 
     def _set_address(self, address):
         self._address = address
+        if address is not None and self.props.has_focus:
+            self._set_text(address)
 
     address = GObject.property(type=str, setter=_set_address)
 
-- 
1.7.7.6



More information about the Sugar-devel mailing list