summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-17 02:06:31 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-17 02:06:31 (EDT)
commit60e8a6820d4983631612bd49742f94fd815095fb (patch)
tree6ef436d4bdff8d81ff70336c103924df0e834ec7
parent8dc8917f7281624f0b793d1a130e0109efdb3767 (diff)
downloadmarquee-60e8a6820d4983631612bd49742f94fd815095fb.zip
marquee-60e8a6820d4983631612bd49742f94fd815095fb.tar.gz
marquee-60e8a6820d4983631612bd49742f94fd815095fb.tar.bz2
mq_tab_new(): Accept notebook instead of label
-rw-r--r--src/tab.c2
-rw-r--r--src/tab.h2
-rw-r--r--src/window.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/tab.c b/src/tab.c
index 1268478..a2b2c57 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -28,7 +28,7 @@
#include "tab-body.h"
MqTab *
-mq_tab_new(gchar *uri, GtkWidget *tab_label)
+mq_tab_new(gchar *uri, GtkNotebook *notebook)
{
MqTab *tab;
diff --git a/src/tab.h b/src/tab.h
index b2f871f..469fb38 100644
--- a/src/tab.h
+++ b/src/tab.h
@@ -34,7 +34,7 @@ typedef struct {
} MqTab;
MqTab *
-mq_tab_new(gchar *uri, GtkWidget *tab_label);
+mq_tab_new(gchar *uri, GtkNotebook *notebook);
GtkWidget *
mq_tab_get_container(MqTab *tab);
diff --git a/src/window.c b/src/window.c
index 275829e..609c32b 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_label);
+ tab = mq_tab_new(uri, GTK_NOTEBOOK(window->notebook));
tab_widget = mq_tab_get_container(tab);
position = gtk_notebook_insert_page(GTK_NOTEBOOK(window->notebook),