summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-24 16:20:30 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-24 16:20:30 (EDT)
commitc6599dff561e0dbb1df584b50ba9eeea5d3a58e9 (patch)
tree5a238566eb15f4d05fedd65b29d360769c7df428
parent85609f6ae792a5797ee14bb36eda7a41c14d0a33 (diff)
downloadmarquee-c6599dff561e0dbb1df584b50ba9eeea5d3a58e9.zip
marquee-c6599dff561e0dbb1df584b50ba9eeea5d3a58e9.tar.gz
marquee-c6599dff561e0dbb1df584b50ba9eeea5d3a58e9.tar.bz2
mq_tab_new_relative(): New function
-rw-r--r--src/tab.c24
-rw-r--r--src/tab.h3
2 files changed, 25 insertions, 2 deletions
diff --git a/src/tab.c b/src/tab.c
index b633344..458b56d 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -289,8 +289,8 @@ title_cb(WebKitWebView __attribute__((unused)) *web_view,
update_tab_label(tab);
}
-MqTab *
-mq_tab_new(MqApplication *application, gchar *uri)
+static MqTab *
+init_non_root(MqApplication *application, gchar *uri)
{
MqTab *tab;
@@ -323,6 +323,26 @@ mq_tab_new(MqApplication *application, gchar *uri)
}
MqTab *
+mq_tab_new(MqApplication *application, gchar *uri)
+{
+ MqTab *tab;
+
+ tab = init_non_root(application, uri);
+
+ return tab;
+}
+
+MqTab *
+mq_tab_new_relative(MqApplication *application, gchar *uri, MqTab *parent)
+{
+ MqTab *tab;
+
+ tab = init_non_root(application, uri);
+
+ return tab;
+}
+
+MqTab *
mq_tab_new_root(void)
{
MqTab *tab;
diff --git a/src/tab.h b/src/tab.h
index c577daf..b7c15d6 100644
--- a/src/tab.h
+++ b/src/tab.h
@@ -54,6 +54,9 @@ struct MqTab {
MqTab *
mq_tab_new(MqApplication *application, gchar *uri);
+MqTab *
+mq_tab_new_relative(MqApplication *application, gchar *uri, MqTab *parent);
+
GtkWidget *
mq_tab_get_tab(MqTab *tab);