diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-17 01:57:30 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-17 01:57:30 (EDT) |
commit | 8dc8917f7281624f0b793d1a130e0109efdb3767 (patch) | |
tree | 826c1adbee87180fe0fb91fd38977cfe1a5ed14b /src | |
parent | 61e241ea4b4ecfeb62abe990931e9cce4e4e1354 (diff) | |
download | marquee-8dc8917f7281624f0b793d1a130e0109efdb3767.zip marquee-8dc8917f7281624f0b793d1a130e0109efdb3767.tar.gz marquee-8dc8917f7281624f0b793d1a130e0109efdb3767.tar.bz2 |
mq_tab_new(): Accept tab label argument
Diffstat (limited to 'src')
-rw-r--r-- | src/tab.c | 2 | ||||
-rw-r--r-- | src/tab.h | 2 | ||||
-rw-r--r-- | src/window.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -28,7 +28,7 @@ #include "tab-body.h" MqTab * -mq_tab_new(gchar *uri) +mq_tab_new(gchar *uri, GtkWidget *tab_label) { MqTab *tab; @@ -34,7 +34,7 @@ typedef struct { } MqTab; MqTab * -mq_tab_new(gchar *uri); +mq_tab_new(gchar *uri, GtkWidget *tab_label); GtkWidget * mq_tab_get_container(MqTab *tab); diff --git a/src/window.c b/src/window.c index a3f0c49..275829e 100644 --- a/src/window.c +++ b/src/window.c @@ -45,7 +45,7 @@ add_tab(MqWindow *window, gchar *uri, gint position) 1, 0, 1, 1); gtk_widget_show_all(tab_label); - tab = mq_tab_new(uri); + tab = mq_tab_new(uri, tab_label); tab_widget = mq_tab_get_container(tab); position = gtk_notebook_insert_page(GTK_NOTEBOOK(window->notebook), |