diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-13 09:17:35 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-13 09:17:35 (GMT) |
commit | c7fdae260681150265142e702f2431236c69ef5a (patch) | |
tree | e749fb8a4156dadb781d0e2d76bc7aad825ba046 /activities/web | |
parent | f1778669ba4f17f40a2148bca68fee5a1c892842 (diff) |
Fix title handling. Hide old browser and chat.
Diffstat (limited to 'activities/web')
-rw-r--r-- | activities/web/webactivity.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activities/web/webactivity.py b/activities/web/webactivity.py index 57c14d9..f8e5e4d 100644 --- a/activities/web/webactivity.py +++ b/activities/web/webactivity.py @@ -1,4 +1,5 @@ import gtk +from gettext import gettext as _ from sugar.activity.Activity import Activity from webbrowser import WebBrowser @@ -10,9 +11,12 @@ class WebActivity(Activity): def __init__(self): Activity.__init__(self) + self.set_title(_('Web Activity')) + vbox = gtk.VBox() self._browser = WebBrowser() + self._browser.connect('notify::title', self._title_changed_cb) toolbar = Toolbar(self._browser) vbox.pack_start(toolbar, False) @@ -25,3 +29,6 @@ class WebActivity(Activity): vbox.show() self._browser.load_url(_HOMEPAGE) + + def _title_changed_cb(self, embed, pspec): + self.set_title(embed.props.title) |