[gnome-text-editor] preferences: apply show-line-numbers setting to preview
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] preferences: apply show-line-numbers setting to preview
- Date: Thu, 2 Dec 2021 23:34:44 +0000 (UTC)
commit c1cb50e2548f565bfe88009fda5c9751f559e1c8
Author: Christian Hergert <chergert redhat com>
Date: Thu Dec 2 15:33:49 2021 -0800
preferences: apply show-line-numbers setting to preview
Use the setting to give the user a more realistic preview of what the
style scheme will look like.
Related #183
src/editor-preferences-dialog.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/editor-preferences-dialog.c b/src/editor-preferences-dialog.c
index 1c32ca6..e621a46 100644
--- a/src/editor-preferences-dialog.c
+++ b/src/editor-preferences-dialog.c
@@ -340,6 +340,9 @@ editor_preferences_dialog_init (EditorPreferencesDialog *self)
g_settings_bind (self->settings, "show-right-margin",
self->source_view, "show-right-margin",
G_SETTINGS_BIND_GET);
+ g_settings_bind (self->settings, "show-line-numbers",
+ self->source_view, "show-line-numbers",
+ G_SETTINGS_BIND_GET);
g_settings_bind_with_mapping (self->settings, "show-grid",
self->source_view, "background-pattern",
G_SETTINGS_BIND_GET,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]