diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-24 16:20:30 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-24 16:20:30 (EDT) |
commit | c6599dff561e0dbb1df584b50ba9eeea5d3a58e9 (patch) | |
tree | 5a238566eb15f4d05fedd65b29d360769c7df428 | |
parent | 85609f6ae792a5797ee14bb36eda7a41c14d0a33 (diff) | |
download | marquee-c6599dff561e0dbb1df584b50ba9eeea5d3a58e9.zip marquee-c6599dff561e0dbb1df584b50ba9eeea5d3a58e9.tar.gz marquee-c6599dff561e0dbb1df584b50ba9eeea5d3a58e9.tar.bz2 |
mq_tab_new_relative(): New function
-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); |