[libdazzle] treenode: style cleanup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] treenode: style cleanup
- Date: Wed, 29 Nov 2017 07:21:34 +0000 (UTC)
commit 371bf8fbaf67daad452aa7b4b5cc9ac8e17d5c5c
Author: Christian Hergert <chergert redhat com>
Date: Tue Nov 28 23:08:37 2017 -0800
treenode: style cleanup
src/tree/dzl-tree-node.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/tree/dzl-tree-node.c b/src/tree/dzl-tree-node.c
index 4968671..695b4e0 100644
--- a/src/tree/dzl-tree-node.c
+++ b/src/tree/dzl-tree-node.c
@@ -1110,7 +1110,7 @@ _dzl_tree_node_add_dummy_child (DzlTreeNode *self)
gtk_tree_store_insert_with_values (model, &iter, &parent, -1,
0, dummy,
-1);
- g_object_unref (dummy);
+ g_clear_object (&dummy);
}
void
@@ -1130,7 +1130,8 @@ _dzl_tree_node_remove_dummy_child (DzlTreeNode *self)
if (dzl_tree_node_get_iter (self, &iter) &&
gtk_tree_model_iter_children (GTK_TREE_MODEL (model), &children, &iter))
{
- while (gtk_tree_store_remove (model, &children)) { }
+ while (gtk_tree_store_remove (model, &children))
+ { /* Do nothing */ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]