[gnome-builder] gui: use "parent" property during vcs creation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] gui: use "parent" property during vcs creation
- Date: Thu, 14 Feb 2019 00:25:51 +0000 (UTC)
commit 104401c3d50100d690ef3ea998159f4debae053c
Author: Christian Hergert <chergert redhat com>
Date: Wed Feb 13 16:24:17 2019 -0800
gui: use "parent" property during vcs creation
src/libide/gui/ide-workbench.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/gui/ide-workbench.c b/src/libide/gui/ide-workbench.c
index b5137218a..339ea0f32 100644
--- a/src/libide/gui/ide-workbench.c
+++ b/src/libide/gui/ide-workbench.c
@@ -336,8 +336,9 @@ ide_workbench_constructed (GObject *object)
G_OBJECT_CLASS (ide_workbench_parent_class)->constructed (object);
- self->vcs_monitor = g_object_new (IDE_TYPE_VCS_MONITOR, NULL);
- ide_object_append (IDE_OBJECT (self->context), IDE_OBJECT (self->vcs_monitor));
+ self->vcs_monitor = g_object_new (IDE_TYPE_VCS_MONITOR,
+ "parent", self->context,
+ NULL);
self->addins = peas_extension_set_new (peas_engine_get_default (),
IDE_TYPE_WORKBENCH_ADDIN,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]