about summary refs log tree commit diff stats
path: root/src/config/theme.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-09-23 00:56:53 +0100
committerJames Booth <boothj5@gmail.com>2016-09-23 00:56:53 +0100
commitd3cc5bd7ed9563dfc673b72ac3347cf41fc3d057 (patch)
tree6f7c72dda85e179b7cf1be3278e64f7a8d900674 /src/config/theme.c
parent3983ee1d6be8245901e83d7d06974005000a1721 (diff)
downloadprofani-tty-d3cc5bd7ed9563dfc673b72ac3347cf41fc3d057.tar.gz
Allow vertical positioning of all windows
Diffstat (limited to 'src/config/theme.c')
-rw-r--r--src/config/theme.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/config/theme.c b/src/config/theme.c
index d4494e58..cee95883 100644
--- a/src/config/theme.c
+++ b/src/config/theme.c
@@ -429,7 +429,6 @@ _load_preferences(void)
     _set_string_preference("roster.rooms.by", PREF_ROSTER_ROOMS_BY);
     _set_string_preference("roster.private", PREF_ROSTER_PRIVATE);
     _set_string_preference("roster.count", PREF_ROSTER_COUNT);
-    _set_string_preference("inputwin.position", PREF_INPUTWIN);
 
     if (g_key_file_has_key(theme, "ui", "occupants.size", NULL)) {
         gint occupants_size = g_key_file_get_integer(theme, "ui", "occupants.size", NULL);
@@ -531,6 +530,14 @@ _load_preferences(void)
             g_free(ch);
         }
     }
+
+    int titlebar_pos = g_key_file_get_integer(theme, "ui", "titlebar.position", NULL);
+    int mainwin_pos = g_key_file_get_integer(theme, "ui", "mainwin.position", NULL);
+    int statusbar_pos = g_key_file_get_integer(theme, "ui", "statusbar.position", NULL);
+    int inputwin_pos = g_key_file_get_integer(theme, "ui", "inputwin.position", NULL);
+    ProfWinPlacement *placement = prefs_create_profwin_placement(titlebar_pos, mainwin_pos, statusbar_pos, inputwin_pos);
+    prefs_save_win_placement(placement);
+    prefs_free_win_placement(placement);
 }
 
 void