Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2012-02-28 14:43:32 +0000
committerSilenio Quarti2012-02-28 19:34:17 +0000
commit1d8346aea092907f235391a00d0ca08a5840c300 (patch)
tree26b89d92a8fd544860818669e1a8f0d71d7897cd /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java
parentc4cf222e3fe3cc10edd722f83c8c46fcaaa0e328 (diff)
downloadeclipse.platform.swt-1d8346aea092907f235391a00d0ca08a5840c300.tar.gz
eclipse.platform.swt-1d8346aea092907f235391a00d0ca08a5840c300.tar.xz
eclipse.platform.swt-1d8346aea092907f235391a00d0ca08a5840c300.zip
Replace usage of GDK_DISPLAY with gdk_x11_display_get_xdisplay.
GDK_DISPLAY macro is deprecated and removed in gtk3. The function used is in gtk since 2.2.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java
index 44e4b82380..3c465a50e3 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java
@@ -174,7 +174,7 @@ void createHandle (int index) {
byte [] trayBuffer = Converter.wcsToMbcs (null, "_NET_SYSTEM_TRAY_S" + monitor, true);
int /*long*/ trayAtom = OS.gdk_atom_intern (trayBuffer, true);
int /*long*/ xTrayAtom = OS.gdk_x11_atom_to_xatom (trayAtom);
- int /*long*/ xDisplay = OS.GDK_DISPLAY ();
+ int /*long*/ xDisplay = OS.gdk_x11_display_get_xdisplay(OS.gdk_display_get_default());
int /*long*/ trayWindow = OS.XGetSelectionOwner (xDisplay, xTrayAtom);
byte [] messageBuffer = Converter.wcsToMbcs (null, "_NET_SYSTEM_TRAY_OPCODE", true);
int /*long*/ messageAtom = OS.gdk_atom_intern (messageBuffer, true);

Back to the top