From: Andy Spencer Date: Mon, 21 Jan 2013 05:01:56 +0000 (+0000) Subject: Get rid of GtkNotebookPage references X-Git-Url: http://pileus.org/git/?p=aweather;a=commitdiff_plain;h=7c1875120499d15fd82d9ed49f934734852bb9c3 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. --- 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);