summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorSilenio Quarti2012-02-28 14:42:10 (EST)
committer Carolyn MacLeod2012-03-06 16:46:51 (EST)
commit3e7bf9b4f7e21c414e755e2540901a82433d3f8d (patch)
tree6534623182f1fc68c2ee3230db6380b4676fa2e3
parentd064821ef5de8ff4063894d709d8221c6beb983e (diff)
downloadeclipse.platform.swt-3e7bf9b4f7e21c414e755e2540901a82433d3f8d.zip
eclipse.platform.swt-3e7bf9b4f7e21c414e755e2540901a82433d3f8d.tar.gz
eclipse.platform.swt-3e7bf9b4f7e21c414e755e2540901a82433d3f8d.tar.bz2
reuse local var
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
index 6487696..9e30ebe 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
@@ -1008,9 +1008,9 @@ void createDisplay (DeviceData data) {
if (OS.GDK_WINDOWING_X11 ()) {
int /*long*/ xWindow = OS.gdk_x11_drawable_get_xid (OS.GTK_WIDGET_WINDOW (shellHandle));
byte[] atomName = Converter.wcsToMbcs (null, "SWT_Window_" + APP_NAME, true); //$NON-NLS-1$
- int /*long*/ atom = OS.XInternAtom (OS.gdk_x11_display_get_xdisplay(OS.gdk_display_get_default()), atomName, false);
- OS.XSetSelectionOwner (OS.gdk_x11_display_get_xdisplay(OS.gdk_display_get_default()), atom, xWindow, OS.CurrentTime);
- OS.XGetSelectionOwner (OS.gdk_x11_display_get_xdisplay(OS.gdk_display_get_default()), atom);
+ int /*long*/ atom = OS.XInternAtom (xDisplay, atomName, false);
+ OS.XSetSelectionOwner (xDisplay, atom, xWindow, OS.CurrentTime);
+ OS.XGetSelectionOwner (xDisplay, atom);
}
signalCallback = new Callback (this, "signalProc", 3); //$NON-NLS-1$