summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBilly Biggs <bbiggs>2005-12-19 21:27:42 +0000
committerBilly Biggs <bbiggs>2005-12-19 21:27:42 +0000
commita5a8ba2c675a0d0e01f3ffec90984781fc3b8239 (patch)
treeab76a3aba794b037476146cfe3ae722f9dd8e505
parent153d0bbc2a5d363d94f0556a18d271ed33fbed40 (diff)
downloadeclipse.platform.swt-a5a8ba2c675a0d0e01f3ffec90984781fc3b8239.tar.gz
eclipse.platform.swt-a5a8ba2c675a0d0e01f3ffec90984781fc3b8239.tar.xz
eclipse.platform.swt-a5a8ba2c675a0d0e01f3ffec90984781fc3b8239.zip
120914 - Warnings suppressed from GtkFileChooser creation
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java10
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java10
2 files changed, 0 insertions, 20 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java
index 9e9a6390f3..0509b84ead 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java
@@ -120,15 +120,6 @@ public String open () {
}
String openChooserDialog () {
byte [] titleBytes = Converter.wcsToMbcs (null, title, true);
- /*
- * Feature in gtk. If the hicolor theme is not installed then a warning
- * is displayed whenever a GtkFileChooser is created. The workaround is
- * to turn off the display of warnings during GtkFileChooser creation.
- * http://bugzilla.gnome.org/show_bug.cgi?id=149931 .
- */
- Display display = parent.getDisplay ();
- boolean oldWarnings = display.getWarnings ();
- display.setWarnings (false);
int /*long*/ shellHandle = parent.topHandle ();
int /*long*/ handle = OS.gtk_file_chooser_dialog_new (
titleBytes,
@@ -142,7 +133,6 @@ String openChooserDialog () {
OS.gtk_window_set_icon_list (handle, pixbufs);
OS.g_list_free (pixbufs);
}
- display.setWarnings (oldWarnings);
if (filterPath != null && filterPath.length () > 0) {
StringBuffer stringBuffer = new StringBuffer ();
/* filename must be a full path */
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java
index 95404d5a44..79bc0c307b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java
@@ -307,15 +307,6 @@ String openChooserDialog () {
int action = (style & SWT.SAVE) != 0 ?
OS.GTK_FILE_CHOOSER_ACTION_SAVE :
OS.GTK_FILE_CHOOSER_ACTION_OPEN;
- Display display = parent.getDisplay ();
- /*
- * Feature in gtk. If the hicolor theme is not installed then a warning
- * is displayed whenever a GtkFileChooser is created. The workaround is
- * to turn off the display of warnings during GtkFileChooser creation.
- * http://bugzilla.gnome.org/show_bug.cgi?id=149931 .
- */
- boolean oldWarnings = display.getWarnings ();
- display.setWarnings (false);
int /*long*/ shellHandle = parent.topHandle ();
handle = OS.gtk_file_chooser_dialog_new (
titleBytes,
@@ -329,7 +320,6 @@ String openChooserDialog () {
OS.gtk_window_set_icon_list (handle, pixbufs);
OS.g_list_free (pixbufs);
}
- display.setWarnings (oldWarnings);
presetChooserDialog ();
String answer = null;
if (OS.gtk_dialog_run (handle) == OS.GTK_RESPONSE_OK) {