aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-04-03 14:19:17 +0800
committerChris Toshok <toshok@src.gnome.org>2003-04-03 14:19:17 +0800
commit049c9cdaca332f110e8f692806efd101e62e2381 (patch)
tree2d35fd3ad3f77c4c4b4aa9b59b0135331cc891dd
parent7277cf7ff4d63475c1f25ba6546950dc49284c46 (diff)
downloadgsoc2013-evolution-049c9cdaca332f110e8f692806efd101e62e2381.tar.gz
gsoc2013-evolution-049c9cdaca332f110e8f692806efd101e62e2381.tar.zst
gsoc2013-evolution-049c9cdaca332f110e8f692806efd101e62e2381.zip
just disconnect based on DATA, so we only need 1 call. (e_text_event):
2003-04-02 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_dispose): just disconnect based on DATA, so we only need 1 call. (e_text_event): same. svn path=/trunk/; revision=20655
-rw-r--r--widgets/text/e-text.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 15d32eefbd..278cf72a0c 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -266,17 +266,9 @@ e_text_dispose (GObject *object)
if (text->im_context) {
g_signal_handlers_disconnect_matched (text->im_context,
- G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA,
+ G_SIGNAL_MATCH_DATA,
0, 0, NULL,
- e_text_commit_cb, text);
- g_signal_handlers_disconnect_matched (text->im_context,
- G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA,
- 0, 0, NULL,
- e_text_retrieve_surrounding_cb, text);
- g_signal_handlers_disconnect_matched (text->im_context,
- G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA,
- 0, 0, NULL,
- e_text_delete_surrounding_cb, text);
+ NULL, text);
g_object_unref (text->im_context);
text->im_context = NULL;
}
@@ -2110,17 +2102,9 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
} else {
if (text->im_context) {
g_signal_handlers_disconnect_matched (text->im_context,
- G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA,
- 0, 0, NULL,
- e_text_commit_cb, text);
- g_signal_handlers_disconnect_matched (text->im_context,
- G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA,
- 0, 0, NULL,
- e_text_retrieve_surrounding_cb, text);
- g_signal_handlers_disconnect_matched (text->im_context,
- G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA,
+ G_SIGNAL_MATCH_DATA,
0, 0, NULL,
- e_text_delete_surrounding_cb, text);
+ NULL, text);
}
e_text_stop_editing (text);
if (text->timeout_id) {