diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-10-04 16:49:07 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-10-04 16:49:07 +0800 |
commit | bc597f022145cdfbd661d4355583d85c86e0c7f4 (patch) | |
tree | ee1d30118b202f236a59e45ca9463b4b154ee455 /src | |
parent | 166ee29973d7db1d0a7a5844eaa488470f5079f9 (diff) | |
download | gsoc2013-empathy-bc597f022145cdfbd661d4355583d85c86e0c7f4.tar gsoc2013-empathy-bc597f022145cdfbd661d4355583d85c86e0c7f4.tar.gz gsoc2013-empathy-bc597f022145cdfbd661d4355583d85c86e0c7f4.tar.bz2 gsoc2013-empathy-bc597f022145cdfbd661d4355583d85c86e0c7f4.tar.lz gsoc2013-empathy-bc597f022145cdfbd661d4355583d85c86e0c7f4.tar.xz gsoc2013-empathy-bc597f022145cdfbd661d4355583d85c86e0c7f4.tar.zst gsoc2013-empathy-bc597f022145cdfbd661d4355583d85c86e0c7f4.zip |
chat-window: port to new GtkNotebook API
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-chat-window.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 70b5c3162..fe2783667 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -1469,7 +1469,7 @@ chat_window_new_message_cb (EmpathyChat *chat, } static GtkNotebook * -chat_window_detach_hook (GtkNotebook *source, +notebook_create_window_cb (GtkNotebook *source, GtkWidget *page, gint x, gint y, @@ -1919,8 +1919,6 @@ empathy_chat_window_class_init (EmpathyChatWindowClass *klass) " ythickness = 0\n" "}\n" "widget \"*.empathy-close-button\" style \"empathy-close-button-style\""); - - gtk_notebook_set_window_creation_hook (chat_window_detach_hook, NULL, NULL); } static void @@ -1990,7 +1988,12 @@ empathy_chat_window_init (EmpathyChatWindow *window) priv->chatroom_manager = empathy_chatroom_manager_dup_singleton (NULL); priv->notebook = gtk_notebook_new (); - gtk_notebook_set_group (GTK_NOTEBOOK (priv->notebook), "EmpathyChatWindow"); + + g_signal_connect (priv->notebook, "create-window", + G_CALLBACK (notebook_create_window_cb), window); + + gtk_notebook_set_group_name (GTK_NOTEBOOK (priv->notebook), + "EmpathyChatWindow"); gtk_notebook_set_scrollable (GTK_NOTEBOOK (priv->notebook), TRUE); gtk_notebook_popup_enable (GTK_NOTEBOOK (priv->notebook)); gtk_box_pack_start (GTK_BOX (chat_vbox), priv->notebook, TRUE, TRUE, 0); |