From 7c1875120499d15fd82d9ed49f934734852bb9c3 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Mon, 21 Jan 2013 05:01:56 +0000 Subject: [PATCH] Get rid of GtkNotebookPage references We convert these to gpointer and don't use them because the API is different between GTK 2 and GTK 3. --- src/plugins/alert.c | 2 +- src/plugins/radar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/alert.c b/src/plugins/alert.c index e828219..73ad75b 100644 --- a/src/plugins/alert.c +++ b/src/plugins/alert.c @@ -848,7 +848,7 @@ static gboolean _clear_details(GtkWidget *dialog) return TRUE; } -static gboolean _set_details_uri(GtkWidget *notebook, GtkNotebookPage *_, +static gboolean _set_details_uri(GtkWidget *notebook, gpointer _, guint num, GtkWidget *button) { g_debug("_set_details_uri"); diff --git a/src/plugins/radar.c b/src/plugins/radar.c index 0d78acb..1edf425 100644 --- a/src/plugins/radar.c +++ b/src/plugins/radar.c @@ -680,7 +680,7 @@ out: } static void _update_hidden(GtkNotebook *notebook, - GtkNotebookPage *page, guint page_num, gpointer viewer) + gpointer _, guint page_num, gpointer viewer) { g_debug("GritsPluginRadar: _update_hidden - 0..%d = %d", gtk_notebook_get_n_pages(notebook), page_num); -- 2.43.2