diff options
-rw-r--r-- | src/tab.c | 24 | ||||
-rw-r--r-- | src/tab.h | 3 |
2 files changed, 25 insertions, 2 deletions
@@ -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; @@ -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); |