diff options
author | Grant Gayed <ggayed> | 2011-04-26 20:55:20 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2011-04-26 20:55:20 +0000 |
commit | ce82e17dea822ccabe6be7e6ae4f983f83d4affc (patch) | |
tree | 0b2fd1fd7975ecee755f7139cb7a627b3e2f148c /bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse | |
parent | ad22f502550d7e77c73a980f657ed42a37d6cd00 (diff) | |
download | eclipse.platform.swt-ce82e17dea822ccabe6be7e6ae4f983f83d4affc.tar.gz eclipse.platform.swt-ce82e17dea822ccabe6be7e6ae4f983f83d4affc.tar.xz eclipse.platform.swt-ce82e17dea822ccabe6be7e6ae4f983f83d4affc.zip |
revert
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java | 5 | ||||
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java index a71175883a..a345c35c88 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java +++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java @@ -475,9 +475,6 @@ public void create (Composite parent, int style) { int /*long*/ settings = WebKitGTK.webkit_web_view_get_settings (webView); OS.g_object_set (settings, WebKitGTK.javascript_can_open_windows_automatically, 1, 0); OS.g_object_set (settings, WebKitGTK.enable_universal_access_from_file_uris, 1, 0); - String encoding = System.getProperty ("file.encoding"); // $NON-NLS-1$ - byte[] bytes = Converter.wcsToMbcs (null, encoding, true); - OS.g_object_set (settings, WebKitGTK.default_encoding, bytes, 0); Listener listener = new Listener () { public void handleEvent (Event event) { @@ -541,7 +538,7 @@ public void create (Composite parent, int style) { proxyHost = PROTOCOL_HTTP + proxyHost; } proxyHost += ":" + port; //$NON-NLS-1$ - bytes = Converter.wcsToMbcs (null, proxyHost, true); + byte[] bytes = Converter.wcsToMbcs (null, proxyHost, true); int /*long*/ uri = WebKitGTK.soup_uri_new (bytes); if (uri != 0) { OS.g_object_set (session, WebKitGTK.SOUP_SESSION_PROXY_URI, uri, 0); diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java index 08c7d7fca8..0b1717ee96 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java +++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java @@ -52,7 +52,6 @@ public class WebKitGTK extends C { public static final byte[] window_object_cleared = ascii ("window-object-cleared"); // $NON-NLS-1$ /** Properties */ - public static final byte[] default_encoding = ascii ("default-encoding"); // $NON-NLS-1$ public static final byte[] enable_scripts = ascii ("enable-scripts"); // $NON-NLS-1$ public static final byte[] enable_universal_access_from_file_uris = ascii ("enable-universal-access-from-file-uris"); // $NON-NLS-1$ public static final byte[] height = ascii ("height"); // $NON-NLS-1$ |