summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe>2008-08-18 18:22:32 +0000
committerBogdan Gheorghe <gheorghe>2008-08-18 18:22:32 +0000
commit0ce9fdae119b048478550faed955fdfab2c3c9b0 (patch)
tree1ef22e4529982abf885a8f8e3a3f5ce6bc76857b
parent0e7b89d527aa1478fe1075a69b89acba8e55ee2d (diff)
downloadeclipse.platform.swt-0ce9fdae119b048478550faed955fdfab2c3c9b0.tar.gz
eclipse.platform.swt-0ce9fdae119b048478550faed955fdfab2c3c9b0.tar.xz
eclipse.platform.swt-0ce9fdae119b048478550faed955fdfab2c3c9b0.zip
243842 Solaris crash: symbol gnome_icon_theme_new: referenced symbol not found
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java
index 1ddc26cbf4..57456d5c67 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java
@@ -94,7 +94,7 @@ static int getDesktop(final Display display) {
if (desktop == DESKTOP_UNKNOWN) {
byte[] gnomeName = Converter.wcsToMbcs(null, "_NET_SUPPORTING_WM_CHECK", true);
int /*long*/ gnome = OS.XInternAtom(xDisplay, gnomeName, true);
- if (gnome != OS.None && gnome_init()) {
+ if (gnome != OS.None && (OS.GTK_VERSION >= OS.VERSION (2, 2, 0)) && gnome_init()) {
desktop = DESKTOP_GNOME;
int /*long*/ icon_theme = GNOME.gnome_icon_theme_new();
display.setData(ICON_THEME_DATA, new LONG(icon_theme));