mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 23:36:21 +00:00
Removed ui_win_switch_num
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user