[gnome-bluetooth] applet: No need to unregister the agents



commit da86e78835edc6cb93e6c5a95df546c8b9732907
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Oct 27 20:47:22 2010 +0100

    applet: No need to unregister the agents
    
    We just unref them instead.

 applet/lib/bluetooth-applet.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/applet/lib/bluetooth-applet.c b/applet/lib/bluetooth-applet.c
index 5000825..ed8aafd 100644
--- a/applet/lib/bluetooth-applet.c
+++ b/applet/lib/bluetooth-applet.c
@@ -398,9 +398,8 @@ find_default_adapter (BluetoothApplet* self)
     self->default_adapter = NULL;
   }
   if (self->agent) {
-		bluetooth_agent_unregister (self->agent);
-		g_object_unref (self->agent);
-		self->agent = NULL;
+	  g_object_unref (self->agent);
+	  self->agent = NULL;
   }
   self->num_adapters_present = self->num_adapters_powered = 0;
 
@@ -885,7 +884,6 @@ bluetooth_applet_dispose (GObject* self)
 	}
 
 	if (applet->agent) {
-		bluetooth_agent_unregister (applet->agent);
 		g_object_unref (applet->agent);
 		applet->agent = NULL;
 	}



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