diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-03-11 17:27:31 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-03-11 17:27:31 +0800 |
commit | 50f4f762ef69611842940d25396816f42e292080 (patch) | |
tree | 23dbb7e56be25cbd18c4dee765f3e02efe9330d4 /libempathy-gtk/empathy-ui-utils.c | |
parent | b9de1b37f3294a49588fcf3ef0ed6bb3e0e5aca9 (diff) | |
download | gsoc2013-empathy-50f4f762ef69611842940d25396816f42e292080.tar gsoc2013-empathy-50f4f762ef69611842940d25396816f42e292080.tar.gz gsoc2013-empathy-50f4f762ef69611842940d25396816f42e292080.tar.bz2 gsoc2013-empathy-50f4f762ef69611842940d25396816f42e292080.tar.lz gsoc2013-empathy-50f4f762ef69611842940d25396816f42e292080.tar.xz gsoc2013-empathy-50f4f762ef69611842940d25396816f42e292080.tar.zst gsoc2013-empathy-50f4f762ef69611842940d25396816f42e292080.zip |
Drop gnome-vfs dependency and use gio instead. Fixes bug #514380 (Cosimo Cecchi).
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@737 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index 80dcd4227..f5c8d3589 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -35,8 +35,8 @@ #include <gdk/gdkx.h> #include <glib/gi18n.h> #include <gtk/gtk.h> +#include <gio/gio.h> #include <glade/glade.h> -#include <libgnomevfs/gnome-vfs-utils.h> #include <libmissioncontrol/mc-profile.h> @@ -1320,14 +1320,21 @@ void empathy_url_show (const char *url) { gchar *real_url; - GnomeVFSResult res; + gboolean res; + GError *err; real_url = fixup_url (url); - res = gnome_vfs_url_show (real_url); - if (res != GNOME_VFS_OK) { + /* FIXME: this does not work for multihead, we should use + * GdkAppLaunchContext for that, when we can depend on GTK+ trunk + */ + res = g_app_info_launch_default_for_uri (real_url, + NULL, + &err); + if (!res) { empathy_debug (DEBUG_DOMAIN, "Couldn't show URL %s: %s", real_url, - gnome_vfs_result_to_string (res)); + err->message); + g_error_free (err); } g_free (real_url); |