From c6599dff561e0dbb1df584b50ba9eeea5d3a58e9 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 24 Sep 2017 16:20:30 -0400 Subject: mq_tab_new_relative(): New function --- (limited to 'src') 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); -- cgit v0.9.1