From ec66f247f08737567e88a342442b65e03026632b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 04 Oct 2018 15:53:25 -0400 Subject: mq_notebook_remove_current_page(): New function --- (limited to 'src/notebook.c') diff --git a/src/notebook.c b/src/notebook.c index 20f7ff2..e5dbd47 100644 --- a/src/notebook.c +++ b/src/notebook.c @@ -460,6 +460,12 @@ mq_notebook_remove_page(MqNotebook *notebook, MqTabPage *page) } } +void +mq_notebook_remove_current_page(MqNotebook *notebook) +{ + mq_notebook_remove_page(notebook, notebook->current_page); +} + gint mq_notebook_get_n_pages(MqNotebook *notebook) { -- cgit v0.9.1