aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config.vala
diff options
context:
space:
mode:
authorJuhani Krekelä2021-06-17 20:22:13 +0300
committerWolfgang Müller2021-06-17 19:42:27 +0200
commit0774a46257bdc6daa1c6a1c3485d75bd07ef849c (patch)
treeaaa26ff08b075fcb120c0ce8170e93bb214a38bd /config.vala
parent1869309c20c313b587e769878dce15ea831476d6 (diff)
downloadweltschmerz-0774a46257bdc6daa1c6a1c3485d75bd07ef849c.tar.gz
Add setting for controlling cursor blinking
Currently weltschmerz always uses the global GTK setting for cursor blink, which means that the cursor blink setting is stored separately from the rest of the configuration. Add a setting for overriding it in the config file, so that all the relevant settings can be adjusted in one standardized place. Reviewed-by: Wolfgang Müller <wolf@oriole.systems>
Diffstat (limited to 'config.vala')
-rw-r--r--config.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.vala b/config.vala
index be3f353..0234aac 100644
--- a/config.vala
+++ b/config.vala
@@ -2,6 +2,7 @@ class Config {
public bool autohide_mouse;
public Vte.CursorShape cursor_shape;
+ public Vte.CursorBlinkMode cursor_blink;
public Pango.FontDescription font;
public int scrollback;
public bool scrollbar;
@@ -44,6 +45,7 @@ class Config {
public void load() {
autohide_mouse = reader.read_boolean("misc", "autohide-mouse", false);
cursor_shape = reader.read_cursor("misc", "cursor-shape", "block");
+ cursor_blink = reader.read_blink("misc", "cursor-blink", "system");
font = Pango.FontDescription.from_string(reader.read_string("misc", "font", "Monospace 12"));
scrollback = reader.read_integer("misc", "scrollback", 10000);
scrollbar = reader.read_boolean("misc", "scrollbar", true);