[gnome-bluetooth/wip/hadess/bluetooth-off-turn-off] XXX test-client



commit 94abc733f77e148eab27a8122111218a9ce49e0d
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Dec 10 18:47:48 2021 +0100

    XXX test-client

 lib/test-client.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
---
diff --git a/lib/test-client.c b/lib/test-client.c
index b2f20464..fc241e68 100644
--- a/lib/test-client.c
+++ b/lib/test-client.c
@@ -67,6 +67,18 @@ static void row_inserted(GtkTreeModel *model, GtkTreePath *path,
        GtkTreeView *tree = user_data;
 
        gtk_tree_view_expand_all(tree);
+       g_message ("inserted:");
+       bluetooth_client_dump_device (model, iter);
+}
+
+static void row_changed(GtkTreeModel *model, GtkTreePath *path,
+                               GtkTreeIter *iter, gpointer user_data)
+{
+       GtkTreeView *tree = user_data;
+
+       gtk_tree_view_expand_all(tree);
+       g_message ("changed:");
+       bluetooth_client_dump_device (model, iter);
 }
 
 static void proxy_to_text(GtkTreeViewColumn *column, GtkCellRenderer *cell,
@@ -244,6 +256,8 @@ static void create_window(void)
        gtk_tree_view_set_model(GTK_TREE_VIEW(tree), sorted);
        g_signal_connect(G_OBJECT(model), "row-inserted",
                                        G_CALLBACK(row_inserted), tree);
+       g_signal_connect(G_OBJECT(model), "row-changed",
+                        G_CALLBACK(row_changed), tree);
        g_object_unref(sorted);
        g_object_unref(model);
 


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