[ghex] Use Gio instead GnomeVfs
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] Use Gio instead GnomeVfs
- Date: Mon, 26 Apr 2010 16:33:34 +0000 (UTC)
commit d48fdd156cc1a924ce6d9a1d40dc2048e3b0fc1c
Author: Daniel Macks <dmacks netspace org>
Date: Mon Apr 26 18:27:09 2010 +0200
Use Gio instead GnomeVfs
Signed-off-by: Javier Jardón <jjardon gnome org>
configure.ac | 2 +-
src/ghex-window.c | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 421ca73..c0def6c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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)
diff --git a/src/ghex-window.c b/src/ghex-window.c
index 0442eac..8866cb9 100644
--- a/src/ghex-window.c
+++ b/src/ghex-window.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]