Commit d48fdd15 authored by Daniel Macks's avatar Daniel Macks Committed by Javier Jardón
Browse files

Use Gio instead GnomeVfs


Signed-off-by: Javier Jardón's avatarJavier Jardón <jjardon@gnome.org>
parent fbfe6654
......@@ -45,7 +45,7 @@ AC_SUBST(LIBGTKHEX_LIBS)
AC_SUBST(LIBGTKHEX_CFLAGS)
PKG_CHECK_MODULES(GHEX,
gnome-vfs-2.0 \
gio-2.0 \
gtk+-2.0 >= 2.4.0 \
libbonoboui-2.0 \
libgnomeprintui-2.2)
......
......@@ -15,7 +15,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>
......@@ -1180,15 +1180,15 @@ ghex_window_save_as(GHexWindow *win)
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment