[gnome-builder/wip/chergert/perspective] sysmon: depend on editor for EditorPerspective
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/perspective] sysmon: depend on editor for EditorPerspective
- Date: Wed, 18 Nov 2015 08:17:09 +0000 (UTC)
commit 2ae3dc47041261849b951b07e1ec5b9a6a3763e1
Author: Christian Hergert <chergert redhat com>
Date: Wed Nov 18 00:16:51 2015 -0800
sysmon: depend on editor for EditorPerspective
plugins/sysmon/gb-sysmon-addin.c | 6 ------
plugins/sysmon/sysmon.plugin | 1 +
2 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/plugins/sysmon/gb-sysmon-addin.c b/plugins/sysmon/gb-sysmon-addin.c
index 29c0b83..5a93899 100644
--- a/plugins/sysmon/gb-sysmon-addin.c
+++ b/plugins/sysmon/gb-sysmon-addin.c
@@ -50,12 +50,6 @@ gb_sysmon_addin_load (IdeWorkbenchAddin *addin,
editor = ide_workbench_get_perspective_by_name (workbench, "editor");
- /*
- * TODO: Editor might not be loaded yet!
- */
- if (editor == NULL)
- return;
-
g_assert (editor != NULL);
g_assert (IDE_IS_LAYOUT (editor));
diff --git a/plugins/sysmon/sysmon.plugin b/plugins/sysmon/sysmon.plugin
index f51d2cb..1abadec 100644
--- a/plugins/sysmon/sysmon.plugin
+++ b/plugins/sysmon/sysmon.plugin
@@ -4,5 +4,6 @@ Name=System Monitor
Description=Basic system information
Authors=Christian Hergert <christian hergert me>
Copyright=Copyright © 2015 Christian Hergert
+Depends=editor
Builtin=true
Hidden=true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]