[gnome-bluetooth] lib: Simplify bluez_vanished_cb()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Simplify bluez_vanished_cb()
- Date: Wed, 5 Oct 2011 17:39:29 +0000 (UTC)
commit 42086ddebaaff665f473dc2242ef08851e9f87ef
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 28 15:45:07 2011 +0100
lib: Simplify bluez_vanished_cb()
Much much simpler.
lib/bluetooth-client.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index ef8a275..25b61f8 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -868,24 +868,13 @@ bluez_vanished_cb (GDBusConnection *connection,
BluetoothClient *client)
{
BluetoothClientPrivate *priv = BLUETOOTH_CLIENT_GET_PRIVATE(client);
- GtkTreeIter iter;
- gboolean cont;
-
- if (g_str_equal(name, BLUEZ_SERVICE) == FALSE)
- return;
-
- DBG("client %p name %s", client, name);
if (priv->default_adapter) {
gtk_tree_row_reference_free (priv->default_adapter);
priv->default_adapter = NULL;
}
- cont = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(priv->store),
- &iter);
-
- while (cont == TRUE)
- cont = gtk_tree_store_remove(priv->store, &iter);
+ gtk_tree_store_clear (priv->store);
}
static void bluetooth_client_init(BluetoothClient *client)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]