From 6626b86a07dcf94012638589284b243ba4fa88f8 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 23 Oct 2017 03:39:31 -0400 Subject: MqWindow: Fix notebook page switch callback --- (limited to 'src') 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 -- cgit v0.9.1