| 9844 guint page_num, PidginWindow *win) |
9844 guint page_num, PidginWindow *win) |
| 9845 { |
9845 { |
| 9846 GtkWidget *item; |
9846 GtkWidget *item; |
| 9847 |
9847 |
| 9848 /* Disconnecting the "child-notify::menu-label" signal. */ |
9848 /* Disconnecting the "child-notify::menu-label" signal. */ |
| 9849 g_signal_handlers_disconnect_matched(child, G_SIGNAL_MATCH_DATA, 0, 0, |
9849 g_signal_handlers_disconnect_by_data(child, notebook); |
| 9850 NULL, NULL, notebook); |
|
| 9851 |
9850 |
| 9852 item = g_object_get_data(G_OBJECT(child), "popup-menu-item"); |
9851 item = g_object_get_data(G_OBJECT(child), "popup-menu-item"); |
| 9853 gtk_container_remove(GTK_CONTAINER(win->notebook_menu), item); |
9852 gtk_container_remove(GTK_CONTAINER(win->notebook_menu), item); |
| 9854 } |
9853 } |
| 9855 |
9854 |