summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorBoris Shingarov <bshingar>2002-04-19 19:43:06 +0000
committerBoris Shingarov <bshingar>2002-04-19 19:43:06 +0000
commitca9e98d8d03c5f00eaeaa1801543d9949ee3444f (patch)
treee3baaf461c5b54fbdc26d4cebf735ce960b5991a /bundles
parented0e4edf961ef69c3d041f3856d4c3b59da8a8a0 (diff)
downloadeclipse.platform.swt-ca9e98d8d03c5f00eaeaa1801543d9949ee3444f.tar.gz
eclipse.platform.swt-ca9e98d8d03c5f00eaeaa1801543d9949ee3444f.tar.xz
eclipse.platform.swt-ca9e98d8d03c5f00eaeaa1801543d9949ee3444f.zip
*** empty log message ***
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
index db45ba734f..e9e67d91a5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
@@ -287,6 +287,21 @@ public class OS {
public static final int GDK_GRAB_NOT_VIEWABLE = 3;
public static final int GDK_GRAB_FROZEN = 4;
+ /* The values for the GtkResponseType constants are specified in
+ * the documentation, therefore there is no need to get them from the OS.
+ */
+ public static final int GTK_RESPONSE_NONE = -1;
+ public static final int GTK_RESPONSE_REJECT = -2;
+ public static final int GTK_RESPONSE_ACCEPT = -3;
+ public static final int GTK_RESPONSE_DELETE_EVENT = -4;
+ public static final int GTK_RESPONSE_OK = -5;
+ public static final int GTK_RESPONSE_CANCEL = -6;
+ public static final int GTK_RESPONSE_CLOSE = -7;
+ public static final int GTK_RESPONSE_YES = -8;
+ public static final int GTK_RESPONSE_NO = -9;
+ public static final int GTK_RESPONSE_APPLY = -10;
+ public static final int GTK_RESPONSE_HELP = -11;
+
public static final native int GTK_TOOLBAR_CHILD_SPACE();
public static final native int GTK_TOOLBAR_CHILD_BUTTON();
@@ -978,6 +993,7 @@ public static final native void gtk_style_set_xthickness(int style, int xthickn
public static final native void gtk_style_set_ythickness(int style, int ythickness);
public static final native void gtk_window_set_destroy_with_parent (int window, boolean setting);
-
public static final native void gdk_window_get_internal_paint_info(int window, int[] drawable, int[] x_offset, int[] y_offset);
+public static final native int gtk_dialog_run(int dialog);
+
} \ No newline at end of file