diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-04-27 18:04:06 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-04-27 18:07:40 +0800 |
commit | 898327a20db060ddcedde2e85757c952c08dbef3 (patch) | |
tree | 71c65a17df4abf1c421fd710834e90fb4cec138b /src | |
parent | bc3746dd1bb352d54542d662846273491fa869e2 (diff) | |
download | gsoc2013-empathy-898327a20db060ddcedde2e85757c952c08dbef3.tar gsoc2013-empathy-898327a20db060ddcedde2e85757c952c08dbef3.tar.gz gsoc2013-empathy-898327a20db060ddcedde2e85757c952c08dbef3.tar.bz2 gsoc2013-empathy-898327a20db060ddcedde2e85757c952c08dbef3.tar.lz gsoc2013-empathy-898327a20db060ddcedde2e85757c952c08dbef3.tar.xz gsoc2013-empathy-898327a20db060ddcedde2e85757c952c08dbef3.tar.zst gsoc2013-empathy-898327a20db060ddcedde2e85757c952c08dbef3.zip |
chat_window_page_switched_cb: get the child from the GTK+ signal
We don't care about GTK+2 compatibility any more.
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-chat-window.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 634126799..94f93e2bf 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -1511,24 +1511,15 @@ notebook_create_window_cb (GtkNotebook *source, static void chat_window_page_switched_cb (GtkNotebook *notebook, - gpointer ignore, /* see note below */ + GtkWidget *child, gint page_num, EmpathyChatWindow *window) { - EmpathyChatWindowPriv *priv; - EmpathyChat *chat; - GtkWidget *child; + EmpathyChatWindowPriv *priv = GET_PRIV (window); + EmpathyChat *chat = EMPATHY_CHAT (child); DEBUG ("Page switched"); - 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); - if (priv->page_added) { priv->page_added = FALSE; empathy_chat_scroll_down (chat); |