diff options
author | James Booth <boothj5@gmail.com> | 2016-09-23 00:56:53 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-09-23 00:56:53 +0100 |
commit | d3cc5bd7ed9563dfc673b72ac3347cf41fc3d057 (patch) | |
tree | 6f7c72dda85e179b7cf1be3278e64f7a8d900674 /src/config/theme.c | |
parent | 3983ee1d6be8245901e83d7d06974005000a1721 (diff) | |
download | profani-tty-d3cc5bd7ed9563dfc673b72ac3347cf41fc3d057.tar.gz |
Allow vertical positioning of all windows
Diffstat (limited to 'src/config/theme.c')
-rw-r--r-- | src/config/theme.c | 9 |
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 |