diff options
-rw-r--r-- | src/window.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/window.c b/src/window.c index d8860c8..d88ab86 100644 --- a/src/window.c +++ b/src/window.c @@ -184,14 +184,11 @@ set_title(MqWindow *window, const gchar *title) static void switch_page_cb(GtkNotebook G_GNUC_UNUSED *notebook, - GtkWidget G_GNUC_UNUSED *page, guint page_num, MqWindow *window) + MqTabPage *page, guint page_num, MqWindow *window) { window->current_tab = ++page_num; - /* TODO: Use MqNotebook function. */ - set_title(window, mq_tab_page_get_title( - MQ_TAB_PAGE(gtk_notebook_get_nth_page( - GTK_NOTEBOOK(window->notebook), page_num)))); + set_title(window, mq_tab_page_get_title(page)); } static void |