disconnect signals added in append_page(). Fixes Gtk-Critical warning

2001-10-30  Damon Chaplin  <damon@ximian.com>

	* gui/dialogs/comp-editor.c (comp_editor_remove_page): disconnect
	signals added in append_page(). Fixes Gtk-Critical warning about
	GtkAccelGroup being added twice to a window.

svn path=/trunk/; revision=14518
This commit is contained in:
Damon Chaplin
2001-10-31 05:37:20 +00:00
committed by Damon Chaplin
parent 3453ef724b
commit 0051272a4e
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2001-10-30 Damon Chaplin <damon@ximian.com>
* gui/dialogs/comp-editor.c (comp_editor_remove_page): disconnect
signals added in append_page(). Fixes Gtk-Critical warning about
GtkAccelGroup being added twice to a window.
2001-10-30 JP Rosevear <jpr@ximian.com>
* gui/itip-utils.c (itip_send_comp): set a body for the message

View File

@ -583,6 +583,11 @@ comp_editor_remove_page (CompEditor *editor, CompEditorPage *page)
priv = editor->priv;
page_widget = comp_editor_page_get_widget (page);
/* Disconnect all the signals added in append_page(). */
gtk_signal_disconnect_by_data (GTK_OBJECT (page), editor);
gtk_signal_disconnect_by_data (GTK_OBJECT (page_widget), page);
page_num = gtk_notebook_page_num (priv->notebook, page_widget);
gtk_notebook_remove_page (priv->notebook, page_num);