file-roller r2243 - in trunk: . src



Author: paobac
Date: Mon Apr 14 17:40:59 2008
New Revision: 2243
URL: http://svn.gnome.org/viewvc/file-roller?rev=2243&view=rev

Log:
2008-04-14  Paolo Bacchilega  <paobac svn gnome org>

	* src/fr-window.c: replace gnome_url_show with 
	g_app_info_launch_default_for_uri

Modified:
   trunk/ChangeLog
   trunk/src/fr-window.c

Modified: trunk/src/fr-window.c
==============================================================================
--- trunk/src/fr-window.c	(original)
+++ trunk/src/fr-window.c	Mon Apr 14 17:40:59 2008
@@ -24,11 +24,10 @@
 #include <string.h>
 
 #include <glib/gi18n.h>
+#include <gio/gio.h>
 #include <gdk/gdkcursor.h>
 #include <gdk/gdkkeysyms.h>
-#include <gio/gio.h>
 #include <gdk-pixbuf/gdk-pixbuf.h>
-#include <libgnome/gnome-url.h>
 
 #include "actions.h"
 #include "dlg-batch-add.h"
@@ -2490,12 +2489,14 @@
 open_folder (GtkWindow  *parent,
 	     const char *folder)
 {
-	GError *err = NULL;
-
+	GAppLaunchContext *app_context;
+	GError            *error = NULL;
+	
 	if (folder == NULL)
 		return;
 
-	if (! gnome_url_show (folder, &err)) {
+	app_context = g_app_launch_context_new ();
+	if (! g_app_info_launch_default_for_uri (folder, app_context, &error)) {
 		GtkWidget *d;
 		char      *utf8_name;
 		char      *message;
@@ -2508,12 +2509,12 @@
 					   GTK_DIALOG_MODAL,
 					   NULL,
 					   message,
-					   err->message);
+					   error->message);
 		gtk_dialog_run (GTK_DIALOG (d));
 		gtk_widget_destroy (d);
 
 		g_free (message);
-		g_clear_error (&err);
+		g_clear_error (&error);
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]