From d3cc5bd7ed9563dfc673b72ac3347cf41fc3d057 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 23 Sep 2016 00:56:53 +0100 Subject: Allow vertical positioning of all windows --- src/config/theme.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/config/theme.c') 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 -- cgit 1.4.1-2-gfad0