[gnome-builder/wip/tintou/context-notify] context: notify when the vcs and build system are guessed
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/tintou/context-notify] context: notify when the vcs and build system are guessed
- Date: Mon, 5 Feb 2018 16:59:04 +0000 (UTC)
commit 35bf6fdb6e4af736221a5534b5691a1b4d7690a8
Author: Corentin Noël <corentin noel collabora co uk>
Date: Mon Feb 5 16:53:59 2018 +0000
context: notify when the vcs and build system are guessed
src/libide/ide-context.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/ide-context.c b/src/libide/ide-context.c
index b22687f61..a7969e601 100644
--- a/src/libide/ide-context.c
+++ b/src/libide/ide-context.c
@@ -1016,7 +1016,8 @@ ide_context_init_vcs_cb (GObject *object,
return;
}
- self->vcs = g_object_ref (vcs);
+ if (g_set_object (&self->vcs, vcs))
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_VCS]);
g_task_return_boolean (task, TRUE);
}
@@ -1067,7 +1068,8 @@ ide_context_init_build_system_cb (GObject *object,
IDE_EXIT;
}
- self->build_system = g_object_ref (build_system);
+ if (g_set_object (&self->build_system, build_system))
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_BUILD_SYSTEM]);
/* allow the build system to override the project file */
g_object_get (self->build_system,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]