summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-10-04 15:53:25 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-10-04 15:53:25 (EDT)
commitec66f247f08737567e88a342442b65e03026632b (patch)
treeedf599e92dd694f034ad72f40cd4f179906c664c /src
parent99f93aa8c094622c67927a6f89d824e37056bb7f (diff)
downloadmarquee-ec66f247f08737567e88a342442b65e03026632b.zip
marquee-ec66f247f08737567e88a342442b65e03026632b.tar.gz
marquee-ec66f247f08737567e88a342442b65e03026632b.tar.bz2
mq_notebook_remove_current_page(): New function
Diffstat (limited to 'src')
-rw-r--r--src/notebook.c6
-rw-r--r--src/notebook.h3
2 files changed, 9 insertions, 0 deletions
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)
{
diff --git a/src/notebook.h b/src/notebook.h
index 8fec0f6..3bc6961 100644
--- a/src/notebook.h
+++ b/src/notebook.h
@@ -68,6 +68,9 @@ mq_notebook_insert_child(MqNotebook *notebook, const gchar *uri,
void
mq_notebook_remove_page(MqNotebook *notebook, MqTabPage *page);
+void
+mq_notebook_remove_current_page(MqNotebook *notebook);
+
gint
mq_notebook_get_n_pages(MqNotebook *notebook) G_GNUC_PURE;