[gnome-bluetooth] applet: Remove broken use of bluetooth_applet_browse_address()



commit d32bad56e1c20e785feba26baa4f8074a33adc36
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 3 16:30:31 2011 +0100

    applet: Remove broken use of bluetooth_applet_browse_address()
    
    The bluetooth_applet_browse_address() code already calls
    gtk_show_uri(), so there's no need for us to do it, and certainly
    no need to do it in a way that wouldn't work and crash.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=701634

 applet/main.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/applet/main.c b/applet/main.c
index a2b90f6..3bfc28d 100644
--- a/applet/main.c
+++ b/applet/main.c
@@ -97,20 +97,12 @@ mount_finish_cb (GObject *source_object,
 		 gpointer user_data)
 {
 	GError *error = NULL;
-	char *uri;
 
 	if (bluetooth_applet_browse_address_finish (applet, res, &error) == FALSE) {
 		g_printerr ("Failed to mount OBEX volume: %s", error->message);
 		g_error_free (error);
 		return;
 	}
-
-	uri = g_file_get_uri (G_FILE (source_object));
-	if (gtk_show_uri (NULL, uri, GDK_CURRENT_TIME, &error) == FALSE) {
-		g_printerr ("Failed to open %s: %s", uri, error->message);
-		g_error_free (error);
-	}
-	g_free (uri);
 }
 
 void browse_callback(GObject *widget, gpointer user_data)



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