Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2006-12-07 13:11:04 -0500
committerGrant Gayed2006-12-07 13:11:04 -0500
commit70ac687fa8e9fa57fb1590a018959484a2a6d547 (patch)
tree981a3f404c02592a92f2364737eaff039067bb1b
parente110ad777de5522fc2aab164f7eb6f0ab0953b03 (diff)
downloadeclipse.platform.swt-70ac687fa8e9fa57fb1590a018959484a2a6d547.tar.gz
eclipse.platform.swt-70ac687fa8e9fa57fb1590a018959484a2a6d547.tar.xz
eclipse.platform.swt-70ac687fa8e9fa57fb1590a018959484a2a6d547.zip
re-add net teardown notification at shutdown
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/Browser.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/Browser.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/Browser.java
index b8f296a8af..bd2a6a8fce 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/Browser.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/Browser.java
@@ -96,6 +96,7 @@ public class Browser extends Composite {
static final String PROFILE_AFTER_CHANGE = "profile-after-change"; //$NON-NLS-1$
static final String PROFILE_BEFORE_CHANGE = "profile-before-change"; //$NON-NLS-1$
static final String PROFILE_DO_CHANGE = "profile-do-change"; //$NON-NLS-1$
+ static final String PROFILE_CHANGE_NET_TEARDOWN = "profile-change-net-teardown"; //$NON-NLS-1$
static final String PROFILE_CHANGE_TEARDOWN = "profile-change-teardown"; //$NON-NLS-1$
static final String SHUTDOWN_PERSIST = "shutdown-persist"; //$NON-NLS-1$
static final String STARTUP = "startup"; //$NON-NLS-1$
@@ -345,13 +346,17 @@ public Browser(Composite parent, int style) {
nsIObserverService observerService = new nsIObserverService(result[0]);
result[0] = 0;
- buffer = Converter.wcsToMbcs(null, PROFILE_CHANGE_TEARDOWN, true);
+ buffer = Converter.wcsToMbcs(null, PROFILE_CHANGE_NET_TEARDOWN, true);
int length = SHUTDOWN_PERSIST.length();
char[] chars = new char [length + 1];
SHUTDOWN_PERSIST.getChars(0, length, chars, 0);
rc = observerService.NotifyObservers(0, buffer, chars);
if (rc != XPCOM.NS_OK) error(rc);
+ buffer = Converter.wcsToMbcs(null, PROFILE_CHANGE_TEARDOWN, true);
+ rc = observerService.NotifyObservers(0, buffer, chars);
+ if (rc != XPCOM.NS_OK) error(rc);
+
buffer = Converter.wcsToMbcs(null, PROFILE_BEFORE_CHANGE, true);
rc = observerService.NotifyObservers(0, buffer, chars);
if (rc != XPCOM.NS_OK) error(rc);

Back to the top