[empathy] GtkNotebookPage no longer exists in GTK+ 3
- From: Danielle Madeley <daniellem src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] GtkNotebookPage no longer exists in GTK+ 3
- Date: Mon, 19 Jul 2010 09:57:30 +0000 (UTC)
commit 69ff2159a6ed984c212cf2054931e5ae1ee742ff
Author: Danielle Madeley <danielle madeley collabora co uk>
Date: Thu Jul 15 17:34:20 2010 +1000
GtkNotebookPage no longer exists in GTK+ 3
src/empathy-chat-window.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index a80d3fe..c4ce8b2 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]