Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Shingarov2002-03-14 20:10:20 +0000
committerBoris Shingarov2002-03-14 20:10:20 +0000
commit66ddc6b7900f09e2087ddaea0c35f9359fb201a2 (patch)
tree87f95add4075e3f51d24c93aed481ffc8e0a8dcb
parenta44d6c468a483d3ce970c3a4b5b18fdc1c196d89 (diff)
downloadeclipse.platform.swt-66ddc6b7900f09e2087ddaea0c35f9359fb201a2.tar.gz
eclipse.platform.swt-66ddc6b7900f09e2087ddaea0c35f9359fb201a2.tar.xz
eclipse.platform.swt-66ddc6b7900f09e2087ddaea0c35f9359fb201a2.zip
Use temp macros
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/GtkFileDialog.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/GtkFileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/GtkFileDialog.java
index 1cfabc222b..c84e98f841 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/GtkFileDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/GtkFileDialog.java
@@ -22,12 +22,8 @@ void createGtkDialog() {
/* create */
byte [] titleBytes = Converter.wcsToMbcs (null, title, true);
handle = OS.gtk_file_selection_new (titleBytes);
-
- /* buttons */
- GtkFileSelection dialog = new GtkFileSelection ();
- OS.memmove (dialog, handle, GtkFileSelection.sizeof);
- okButtonHandle = dialog.ok_button;
- cancelButtonHandle = dialog.cancel_button;
+ okButtonHandle = OS.GTK_FILE_SELECTION_OK_BUTTON(handle);
+ cancelButtonHandle = OS.GTK_FILE_SELECTION_OK_BUTTON(handle);
}
/**

Back to the top