[gnome-builder] project-tree: Use g_signal_connect_object



commit 1c988396a1920d6d1c7d4c85901fa4854724e934
Author: Matthew Leeds <mleeds redhat com>
Date:   Thu Jan 19 14:38:10 2017 -0600

    project-tree: Use g_signal_connect_object

 plugins/project-tree/gb-project-tree-builder.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plugins/project-tree/gb-project-tree-builder.c b/plugins/project-tree/gb-project-tree-builder.c
index 9712ac5..2d70da2 100644
--- a/plugins/project-tree/gb-project-tree-builder.c
+++ b/plugins/project-tree/gb-project-tree-builder.c
@@ -409,8 +409,9 @@ gb_project_tree_builder_init (GbProjectTreeBuilder *self)
   self->sort_directories_first = g_settings_get_boolean (self->file_chooser_settings,
                                                          "sort-directories-first");
 
-  g_signal_connect (self->file_chooser_settings,
-                    "changed::sort-directories-first",
-                    G_CALLBACK (gb_project_tree_builder_rebuild),
-                    self);
+  g_signal_connect_object (self->file_chooser_settings,
+                           "changed::sort-directories-first",
+                           G_CALLBACK (gb_project_tree_builder_rebuild),
+                           self,
+                           0);
 }


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