Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser.py
diff options
context:
space:
mode:
Diffstat (limited to 'browser.py')
-rw-r--r--browser.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/browser.py b/browser.py
index 83cc7ea..c5165db 100644
--- a/browser.py
+++ b/browser.py
@@ -383,9 +383,16 @@ class Browser(WebKit.WebView):
([str])),
}
+ CURRENT_SUGAR_VERSION = '0.96'
+
def __init__(self):
WebKit.WebView.__init__(self)
+ web_settings = self.get_settings()
+ identifier = ' Sugar Labs/' + self.CURRENT_SUGAR_VERSION
+ web_settings.props.user_agent += identifier
+ self.set_settings(web_settings)
+
# Reference to the global history and callbacks to handle it:
self._global_history = globalhistory.get_global_history()
self.connect('notify::load-status', self.__load_status_changed_cb)