[gnome-builder/wip/chergert/gutter] add settings for diagnostics in gutter
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/gutter] add settings for diagnostics in gutter
- Date: Mon, 18 Sep 2017 06:59:55 +0000 (UTC)
commit 7627473c093d2610555a0a97fe0503f994ed0706
Author: Christian Hergert <chergert redhat com>
Date: Sun Sep 17 23:59:46 2017 -0700
add settings for diagnostics in gutter
.../gsettings/org.gnome.builder.editor.gschema.xml | 5 +++++
libide/editor/ide-editor-view-settings.c | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/data/gsettings/org.gnome.builder.editor.gschema.xml
b/data/gsettings/org.gnome.builder.editor.gschema.xml
index 1bc5023..d7e4cc4 100644
--- a/data/gsettings/org.gnome.builder.editor.gschema.xml
+++ b/data/gsettings/org.gnome.builder.editor.gschema.xml
@@ -29,6 +29,11 @@
<summary>Show modified lines</summary>
<description>If enabled, the editor will show line additions and changes next to the source
code.</description>
</key>
+ <key name="show-line-diagnostics" type="b">
+ <default>true</default>
+ <summary>Show diagnostics next to line number</summary>
+ <description>If enabled, the editor will show diagnostics to the left to the line
numbers.</description>
+ </key>
<key name="highlight-current-line" type="b">
<default>false</default>
<summary>Highlight current line</summary>
diff --git a/libide/editor/ide-editor-view-settings.c b/libide/editor/ide-editor-view-settings.c
index 663de12..86823c3 100644
--- a/libide/editor/ide-editor-view-settings.c
+++ b/libide/editor/ide-editor-view-settings.c
@@ -151,6 +151,10 @@ _ide_editor_view_init_settings (IdeEditorView *self)
source_view, "show-line-changes",
G_SETTINGS_BIND_GET);
+ g_settings_bind (self->editor_settings, "show-line-diagnostics",
+ source_view, "show-line-diagnostics",
+ G_SETTINGS_BIND_GET);
+
g_settings_bind (self->editor_settings, "show-line-numbers",
source_view, "show-line-numbers",
G_SETTINGS_BIND_GET);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]