summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-25 10:36:14 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-25 10:36:14 (EDT)
commit83b9022b6b8af9b28dfae943307ad8465e036680 (patch)
tree01d7c2cf8092c1f988029c08c40f281116b2a4d9
parent08f190790ea79298dd25b0361fe1a86c05437e3e (diff)
downloadmarquee-83b9022b6b8af9b28dfae943307ad8465e036680.zip
marquee-83b9022b6b8af9b28dfae943307ad8465e036680.tar.gz
marquee-83b9022b6b8af9b28dfae943307ad8465e036680.tar.bz2
mq_tab_page_close(): New function
-rw-r--r--src/tab-page.c8
-rw-r--r--src/tab-page.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/tab-page.c b/src/tab-page.c
index 364879e..1a7b37a 100644
--- a/src/tab-page.c
+++ b/src/tab-page.c
@@ -222,6 +222,14 @@ mq_tab_page_new(MqWindow *window, const gchar *uri)
}
void
+mq_tab_page_close(MqTabPage *tab_page)
+{
+ mq_notebook_remove_page(
+ MQ_NOTEBOOK(gtk_widget_get_parent(GTK_WIDGET(tab_page))),
+ tab_page);
+}
+
+void
mq_tab_page_quit(MqTabPage *tab_page)
{
mq_window_quit(tab_page->window);
diff --git a/src/tab-page.h b/src/tab-page.h
index 0652e28..c0c5612 100644
--- a/src/tab-page.h
+++ b/src/tab-page.h
@@ -56,6 +56,9 @@ MqTabPage *
mq_tab_page_new(MqWindow *window, const gchar *uri);
void
+mq_tab_page_close(MqTabPage *tab_page);
+
+void
mq_tab_page_quit(MqTabPage *tab_page);
MqApplication *