[gthumb] Use gtk_show_uri instead of gnome_vfs_url_show
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Use gtk_show_uri instead of gnome_vfs_url_show
- Date: Thu, 23 Apr 2009 08:30:43 -0400 (EDT)
commit 2cf15617e84072fb9157b762cc474aa772e5e204
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Thu Apr 23 08:30:26 2009 -0400
Use gtk_show_uri instead of gnome_vfs_url_show
---
src/gth-browser-actions-callbacks.c | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/gth-browser-actions-callbacks.c b/src/gth-browser-actions-callbacks.c
index 1df2329..d63b54a 100644
--- a/src/gth-browser-actions-callbacks.c
+++ b/src/gth-browser-actions-callbacks.c
@@ -927,16 +927,22 @@ static void
show_folder (GtkWindow *window,
const char *path)
{
- char *uri;
- GnomeVFSResult result;
+ char *uri;
+ GError *error = NULL;
if (path == NULL)
return;
uri = add_scheme_if_absent (path);
- result = gnome_vfs_url_show (uri);
- if (result != GNOME_VFS_OK)
- _gtk_error_dialog_run (window, "%s", gnome_vfs_result_to_string (result));
+
+ gtk_show_uri (gtk_window_get_screen (window),
+ uri,
+ gtk_get_current_event_time (),
+ &error);
+
+ if (error)
+ _gtk_error_dialog_from_gerror_run (window, &error);
+
g_free (uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]