[gnome-builder] project-tree: Use g_signal_connect_object
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] project-tree: Use g_signal_connect_object
- Date: Thu, 19 Jan 2017 20:51:39 +0000 (UTC)
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]