[gnome-builder] build-result: add context to build result addin
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build-result: add context to build result addin
- Date: Thu, 28 Apr 2016 08:31:22 +0000 (UTC)
commit 91e282c73c5bf18ed38a0a108402cc76ab7f5b34
Author: Christian Hergert <christian hergert me>
Date: Thu Apr 28 01:25:49 2016 -0700
build-result: add context to build result addin
If the build result addin is an IdeObject, give it a context.
libide/ide-build-result.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-build-result.c b/libide/ide-build-result.c
index 3776777..533a1ad 100644
--- a/libide/ide-build-result.c
+++ b/libide/ide-build-result.c
@@ -354,6 +354,10 @@ ide_build_result_addin_added (PeasExtensionSet *set,
g_assert (IDE_IS_BUILD_RESULT_ADDIN (addin));
g_assert (IDE_IS_BUILD_RESULT (self));
+ if (IDE_IS_OBJECT (addin))
+ ide_object_set_context (IDE_OBJECT (addin),
+ ide_object_get_context (IDE_OBJECT (self)));
+
ide_build_result_addin_load (addin, self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]