[gnome-builder] sysmon: depend on editor for EditorPerspective
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] sysmon: depend on editor for EditorPerspective
- Date: Mon, 21 Dec 2015 07:49:58 +0000 (UTC)
commit 4ab65163aba0d8b304e3ec3da25304e78569975d
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]