Get rid of GtkNotebookPage references
authorAndy Spencer <andy753421@gmail.com>
Mon, 21 Jan 2013 05:01:56 +0000 (05:01 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 21 Jan 2013 05:01:56 +0000 (05:01 +0000)
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
src/plugins/radar.c

index e828219..73ad75b 100644 (file)
@@ -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");
index 0d78acb..1edf425 100644 (file)
@@ -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);