summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 *