summaryrefslogtreecommitdiff
path: root/src/gui/gui-buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui-buffer.c')
-rw-r--r--src/gui/gui-buffer.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 5413e29a3..ae4a2a995 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -3467,6 +3467,22 @@ gui_buffer_hide (struct t_gui_buffer *buffer)
}
/*
+ * Hides all buffers.
+ */
+
+void
+gui_buffer_hide_all ()
+{
+ struct t_gui_buffer *ptr_buffer;
+
+ for (ptr_buffer = gui_buffers; ptr_buffer;
+ ptr_buffer = ptr_buffer->next_buffer)
+ {
+ gui_buffer_hide (ptr_buffer);
+ }
+}
+
+/*
* Unhides a buffer.
*/
@@ -3483,6 +3499,22 @@ gui_buffer_unhide (struct t_gui_buffer *buffer)
}
/*
+ * Unhides all buffers.
+ */
+
+void
+gui_buffer_unhide_all ()
+{
+ struct t_gui_buffer *ptr_buffer;
+
+ for (ptr_buffer = gui_buffers; ptr_buffer;
+ ptr_buffer = ptr_buffer->next_buffer)
+ {
+ gui_buffer_unhide (ptr_buffer);
+ }
+}
+
+/*
* Sorts buffers by layout number.
*/