]> git.0d.be Git - empathy.git/commitdiff
GtkNotebookPage no longer exists in GTK+ 3
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Thu, 15 Jul 2010 07:34:20 +0000 (17:34 +1000)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Mon, 19 Jul 2010 09:44:56 +0000 (10:44 +0100)
src/empathy-chat-window.c

index a80d3fee5be7214e95cbabb457b93d92dcc4368b..c4ce8b26ede8255b78c74614fe4463aa9abc176c 100644 (file)
@@ -1461,7 +1461,7 @@ chat_window_detach_hook (GtkNotebook *source,
 
 static void
 chat_window_page_switched_cb (GtkNotebook      *notebook,
 
 static void
 chat_window_page_switched_cb (GtkNotebook      *notebook,
-                             GtkNotebookPage  *page,
+                             gpointer          ignore, /* see note below */
                              gint              page_num,
                              EmpathyChatWindow *window)
 {
                              gint              page_num,
                              EmpathyChatWindow *window)
 {
@@ -1473,6 +1473,9 @@ chat_window_page_switched_cb (GtkNotebook      *notebook,
 
        priv = GET_PRIV (window);
 
 
        priv = GET_PRIV (window);
 
+       /* N.B. in GTK+ 3 child is passed as the first argument to the signal,
+        * but we can't use that while trying to retain GTK+ 2.x compatibility.
+        */
        child = gtk_notebook_get_nth_page (notebook, page_num);
        chat = EMPATHY_CHAT (child);
 
        child = gtk_notebook_get_nth_page (notebook, page_num);
        chat = EMPATHY_CHAT (child);