From 2b310dda966528fcfa7824e71657af0804ca0d61 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 17 May 2006 17:29:23 -0400 Subject: [PATCH] Some renaming --- sugar/browser/browser.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sugar/browser/browser.py b/sugar/browser/browser.py index 994165fa..de53a7a4 100755 --- a/sugar/browser/browser.py +++ b/sugar/browser/browser.py @@ -174,12 +174,12 @@ class BrowserActivity(activity.Activity): def __notif_bar_action_cb(self, bar, action_id): print action_id - if action_id == 'set_shared_address': + if action_id == 'set_shared_location': address = self.embed.get_address() - self._model.set_value('current_address', address) - print 'address set to ' + address - elif action_id == 'goto_shared_address': - address = self._model.get_value("current_address") + self._model.set_value('address', address) + elif action_id == 'goto_shared_location': + address = self._model.get_value("address") + print address self.embed.load_address(address) self._notif_bar.hide() @@ -187,7 +187,7 @@ class BrowserActivity(activity.Activity): self._mode = mode if mode == BrowserActivity.LEADING: self._notif_bar.set_text("You are leading the browsing.") - self._notif_bar.set_action("set_shared_address", "Move Here") + self._notif_bar.set_action("set_shared_location", "Move Here") self._notif_bar.show() def _setup_shared(self, uri): @@ -234,7 +234,7 @@ class BrowserActivity(activity.Activity): def share(self): address = self.embed.get_address() self._model = self._group.get_store().create_model(address) - self._model.set_value('current_address', address) + self._model.set_value('address', address) self.set_mode(BrowserActivity.LEADING) bus = dbus.SessionBus()