aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-10-31 13:37:20 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-10-31 13:37:20 +0800
commit0051272a4e89d010ed2bfa118c6e692a79fd8647 (patch)
treea61fd8a43906cb5fd8be559df0e59439c63b829b
parent3453ef724b891a0286c436b28b0b4fd50edc74f4 (diff)
downloadgsoc2013-evolution-0051272a4e89d010ed2bfa118c6e692a79fd8647.tar
gsoc2013-evolution-0051272a4e89d010ed2bfa118c6e692a79fd8647.tar.gz
gsoc2013-evolution-0051272a4e89d010ed2bfa118c6e692a79fd8647.tar.bz2
gsoc2013-evolution-0051272a4e89d010ed2bfa118c6e692a79fd8647.tar.lz
gsoc2013-evolution-0051272a4e89d010ed2bfa118c6e692a79fd8647.tar.xz
gsoc2013-evolution-0051272a4e89d010ed2bfa118c6e692a79fd8647.tar.zst
gsoc2013-evolution-0051272a4e89d010ed2bfa118c6e692a79fd8647.zip
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
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/dialogs/comp-editor.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 16f09e21c1..d45ea462e7 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -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
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 77d0efaf22..9e07e7a2cf 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -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);