Commit fe24d2fc by Őry Máté

cloudgui: more webkit settings

parent 40623433
...@@ -87,6 +87,8 @@ class Browser: ...@@ -87,6 +87,8 @@ class Browser:
self.webview.connect("navigation-requested", self.on_navigation_requested) self.webview.connect("navigation-requested", self.on_navigation_requested)
settings = webkit.WebSettings() settings = webkit.WebSettings()
settings.set_property('user-agent', 'cloud-gui '+self.version) settings.set_property('user-agent', 'cloud-gui '+self.version)
settings.set_property('enable-accelerated-compositing', True)
settings.set_property("enable-default-context-menu", False)
self.webview.set_settings(settings) self.webview.set_settings(settings)
#Connect things #Connect things
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment