about summary refs log tree commit diff stats
path: root/src/config/theme.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-04-18 20:53:02 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-04-18 20:53:02 +0200
commit0c248a0b16e9c159b274667c7149f50299328804 (patch)
tree08a7db8e9aa5f14546c9ba1e203b1c8ed3ba0b68 /src/config/theme.c
parent7e4e9e668853d8cc404ace0c160376d113069c32 (diff)
downloadprofani-tty-0c248a0b16e9c159b274667c7149f50299328804.tar.gz
Add /occupants indent command
Roster has a `/roster contact indent` option.
Now we have the same for occupants. So contacts in roster and in MUC can
have configurable indentation.

Regards https://github.com/boothj5/profanity/issues/690
Diffstat (limited to 'src/config/theme.c')
-rw-r--r--src/config/theme.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config/theme.c b/src/config/theme.c
index a94cfb21..4e385ead 100644
--- a/src/config/theme.c
+++ b/src/config/theme.c
@@ -452,6 +452,11 @@ _load_preferences(void)
         prefs_set_occupants_size(occupants_size);
     }
 
+    if (g_key_file_has_key(theme, "ui", "occupants.indent", NULL)) {
+        gint occupants_indent = g_key_file_get_integer(theme, "ui", "occupants.indent", NULL);
+        prefs_set_occupants_indent(occupants_indent);
+    }
+
     if (g_key_file_has_key(theme, "ui", "roster.size", NULL)) {
         gint roster_size = g_key_file_get_integer(theme, "ui", "roster.size", NULL);
         prefs_set_roster_size(roster_size);