From 2eb61f092499f685c2da411e9abd5e905eda178d Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Thu, 12 Apr 2012 19:34:08 +0300 Subject: Do not check for gnome_vfs_url_show. The method gnome_init already calls gnome_vfs_init which is good enough guarantee for having gnome-vfs installed. Modern Gnome desktops would not be found by this because they don't ship gnome-vfs always but the previous GIO check should have handled it already. --- .../gtk/org/eclipse/swt/program/Program.java | 11 ----------- 1 file changed, 11 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 5c17a4421c..fe391fc2d8 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 @@ -137,17 +137,6 @@ static int getDesktop(final Display display) { if (gnomeIconTheme.value != 0) OS.g_object_unref(gnomeIconTheme.value); } }); - /* Check for libgnomevfs-2 version 2.4 */ - buffer = Converter.wcsToMbcs(null, "libgnomevfs-2.so.0", true); - long /*int*/ libgnomevfs = OS.dlopen(buffer, OS.RTLD_LAZY); - if (libgnomevfs != 0) { - buffer = Converter.wcsToMbcs(null, "gnome_vfs_url_show", true); - long /*int*/ gnome_vfs_url_show = OS.dlsym(libgnomevfs, buffer); - if (gnome_vfs_url_show != 0) { - desktop = DESKTOP_GNOME; - } - OS.dlclose(libgnomevfs); - } } } } -- cgit