Removed ui_win_switch_num

This commit is contained in:
James Booth
2015-04-30 22:09:39 +01:00
parent 20555fcb36
commit d68fb25dde
10 changed files with 81 additions and 159 deletions

View File

@@ -644,6 +644,7 @@ gboolean
wins_swap(int source_win, int target_win)
{
ProfWin *source = g_hash_table_lookup(windows, GINT_TO_POINTER(source_win));
ProfWin *console = wins_get_console();
if (source) {
ProfWin *target = g_hash_table_lookup(windows, GINT_TO_POINTER(target_win));
@@ -660,7 +661,7 @@ wins_swap(int source_win, int target_win)
}
if (wins_get_current_num() == source_win) {
wins_set_current_by_num(target_win);
ui_switch_win_num(1);
ui_switch_win(console);
}
return TRUE;
@@ -681,7 +682,7 @@ wins_swap(int source_win, int target_win)
status_bar_active(source_win);
}
if ((wins_get_current_num() == source_win) || (wins_get_current_num() == target_win)) {
ui_switch_win_num(1);
ui_switch_win(console);
}
return TRUE;
}
@@ -740,7 +741,8 @@ wins_tidy(void)
windows = new_windows;
current = 1;
ui_switch_win_num(1);
ProfWin *console = wins_get_console();
ui_switch_win(console);
g_list_free(keys);
return TRUE;
} else {