diff -Nurd ghex-2.24.0.orig/configure.in ghex-2.24.0/configure.in
--- ghex-2.24.0.orig/configure.in	2009-02-18 23:56:58.000000000 -0500
+++ ghex-2.24.0/configure.in	2009-02-22 14:37:21.000000000 -0500
@@ -36,6 +36,7 @@
 AC_SUBST(LIBGTKHEX_CFLAGS)
 
 PKG_CHECK_MODULES(GHEX,
+		  gio-2.0			\
 		  gtk+-2.0 >= 2.4.0 		\
 		  libgnomeui-2.0 >= 2.6.0	\
 		  libgnomeprintui-2.2)
diff -Nurd ghex-2.24.0.orig/src/ghex-window.c ghex-2.24.0/src/ghex-window.c
--- ghex-2.24.0.orig/src/ghex-window.c	2009-02-06 23:05:35.000000000 -0500
+++ ghex-2.24.0/src/ghex-window.c	2009-02-22 14:26:49.000000000 -0500
@@ -20,7 +20,7 @@
 #include <bonobo.h>
 #include <bonobo/bonobo-ui-main.h>
 
-#include <libgnomevfs/gnome-vfs-ops.h>
+#include <gio/gio.h>
 
 #include <math.h>
 #include <ctype.h>
@@ -1183,15 +1183,15 @@
 gboolean
 ghex_window_uri_exists (const gchar* text_uri)
 {
-	GnomeVFSURI *uri;
+	GFile *uri;
 	gboolean res;
 
 	g_return_val_if_fail (text_uri != NULL, FALSE);
-	uri = gnome_vfs_uri_new (text_uri);
+	uri = g_file_new_for_uri (text_uri);
 	g_return_val_if_fail (uri != NULL, FALSE);
-	res = gnome_vfs_uri_exists (uri);
+	res = g_file_query_exists (uri, NULL);
 
-	gnome_vfs_uri_unref (uri);
+	g_object_unref (uri);
 	return res;
 }
 
