1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 01:33:12 +02:00

Remove argument "switch_to_another" for function gui_buffer_close()

This commit is contained in:
Sebastien Helleu
2008-11-27 17:05:59 +01:00
parent aa77b482ad
commit 3c51c0e7c4
19 changed files with 34 additions and 59 deletions
+1 -1
View File
@@ -343,7 +343,7 @@ gui_main_end (int clean_exit)
/* delete all buffers */
while (gui_buffers)
{
gui_buffer_close (gui_buffers, 0);
gui_buffer_close (gui_buffers);
}
gui_ok = 0;
+1 -1
View File
@@ -238,7 +238,7 @@ gui_main_end (int clean_exit)
/* delete all buffers */
while (gui_buffers)
{
gui_buffer_close (gui_buffers, 0);
gui_buffer_close (gui_buffers);
}
/* delete global history */
+2 -2
View File
@@ -1198,7 +1198,7 @@ gui_buffer_clear_all ()
*/
void
gui_buffer_close (struct t_gui_buffer *buffer, int switch_to_another)
gui_buffer_close (struct t_gui_buffer *buffer)
{
struct t_gui_window *ptr_window;
struct t_gui_buffer *ptr_buffer;
@@ -1211,7 +1211,7 @@ gui_buffer_close (struct t_gui_buffer *buffer, int switch_to_another)
(void)(buffer->close_callback) (buffer->close_callback_data, buffer);
}
if (switch_to_another)
if (!weechat_quit)
{
for (ptr_window = gui_windows; ptr_window;
ptr_window = ptr_window->next_window)
+1 -2
View File
@@ -235,8 +235,7 @@ extern struct t_gui_window *gui_buffer_find_window (struct t_gui_buffer *buffer)
extern int gui_buffer_is_scrolled (struct t_gui_buffer *buffer);
extern void gui_buffer_clear (struct t_gui_buffer *buffer);
extern void gui_buffer_clear_all ();
extern void gui_buffer_close (struct t_gui_buffer *buffer,
int switch_to_another);
extern void gui_buffer_close (struct t_gui_buffer *buffer);
extern void gui_buffer_switch_previous (struct t_gui_window *window);
extern void gui_buffer_switch_next (struct t_gui_window *window);
extern void gui_buffer_switch_by_number (struct t_gui_window *window,