aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2010-07-15 15:34:20 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2010-07-19 17:44:56 +0800
commit69ff2159a6ed984c212cf2054931e5ae1ee742ff (patch)
treeafaa5c8d54654ceb84d37edf75d482b872e2f433 /src
parent004fb69b847bbf1ffbd28ed22e307e1b3a859da8 (diff)
downloadgsoc2013-empathy-69ff2159a6ed984c212cf2054931e5ae1ee742ff.tar
gsoc2013-empathy-69ff2159a6ed984c212cf2054931e5ae1ee742ff.tar.gz
gsoc2013-empathy-69ff2159a6ed984c212cf2054931e5ae1ee742ff.tar.bz2
gsoc2013-empathy-69ff2159a6ed984c212cf2054931e5ae1ee742ff.tar.lz
gsoc2013-empathy-69ff2159a6ed984c212cf2054931e5ae1ee742ff.tar.xz
gsoc2013-empathy-69ff2159a6ed984c212cf2054931e5ae1ee742ff.tar.zst
gsoc2013-empathy-69ff2159a6ed984c212cf2054931e5ae1ee742ff.zip
GtkNotebookPage no longer exists in GTK+ 3
Diffstat (limited to 'src')
-rw-r--r--src/empathy-chat-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index a80d3fee5..c4ce8b26e 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -1461,7 +1461,7 @@ chat_window_detach_hook (GtkNotebook *source,
static void
chat_window_page_switched_cb (GtkNotebook *notebook,
- GtkNotebookPage *page,
+ gpointer ignore, /* see note below */
gint page_num,
EmpathyChatWindow *window)
{
@@ -1473,6 +1473,9 @@ chat_window_page_switched_cb (GtkNotebook *notebook,
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);