[gwget] Use gtk_show_uri instead of gnome_url_show
- From: David Sedeño Fernández <davidsf src gnome org>
- To: svn-commits-list gnome org
- Subject: [gwget] Use gtk_show_uri instead of gnome_url_show
- Date: Wed, 17 Jun 2009 18:11:52 -0400 (EDT)
commit e501bbf88a2df02a16a2cff7a42fecbcab2de095
Author: David Sedeño <david alderia com>
Date: Tue Jun 16 20:33:41 2009 +0200
Use gtk_show_uri instead of gnome_url_show
src/main_window_cb.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/main_window_cb.c b/src/main_window_cb.c
index bf939af..89b0c30 100644
--- a/src/main_window_cb.c
+++ b/src/main_window_cb.c
@@ -1263,10 +1263,12 @@ on_open_download_activate (GtkWidget *widget, gpointer data)
uri = g_file_get_uri (location);
- if (!gnome_url_show (uri, &err)) {
+ if (!gtk_show_uri (NULL, uri, GDK_CURRENT_TIME, &err)) {
run_dialog_error (_("Error opening file"),_("Couldn't open the file"));
return;
}
+
+ g_object_unref (location);
}
void
@@ -1284,10 +1286,12 @@ on_open_directory_activate (GtkWidget *widget, gpointer data)
uri = g_file_get_uri (location);
- if (!gnome_url_show (uri, &err)) {
+ if (!gtk_show_uri (NULL, uri, GDK_CURRENT_TIME, &err)) {
run_dialog_error (_("Error opening file"),_("Couldn't open the folder"));
return;
}
+
+ g_object_unref (location);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]