[evolution-patches] [PATCH] Cut/Copy/Paste in composer entries



This patch fixes cut/copy/paste in the composer entries To:, Cc: and
Bcc:. There's one more case - the "Post To:" folder field - but I'm not
sure what to do about this, since there is no API to grab hold of the
widget pointer (that I could find).

-- 
Hans Petter Jansson | <hpj novell com>
Evolution Developer | http://hp.cl.no/
Index: composer/e-msg-composer.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer.c,v
retrieving revision 1.500
diff -u -p -r1.500 e-msg-composer.c
--- composer/e-msg-composer.c	4 Mar 2005 03:15:21 -0000	1.500
+++ composer/e-msg-composer.c	12 Mar 2005 02:49:47 -0000
@@ -3306,6 +3306,18 @@ setup_cut_copy_paste (EMsgComposer *comp
 	entry = e_msg_composer_hdrs_get_reply_to_entry (hdrs);
 	g_signal_connect (entry, "focus_in_event", G_CALLBACK (composer_entry_focus_in_event_cb), composer);
 	g_signal_connect (entry, "focus_out_event", G_CALLBACK (composer_entry_focus_out_event_cb), composer);
+
+	entry = e_msg_composer_hdrs_get_to_entry (hdrs);
+	g_signal_connect (entry, "focus_in_event", G_CALLBACK (composer_entry_focus_in_event_cb), composer);
+	g_signal_connect (entry, "focus_out_event", G_CALLBACK (composer_entry_focus_out_event_cb), composer);
+
+	entry = e_msg_composer_hdrs_get_cc_entry (hdrs);
+	g_signal_connect (entry, "focus_in_event", G_CALLBACK (composer_entry_focus_in_event_cb), composer);
+	g_signal_connect (entry, "focus_out_event", G_CALLBACK (composer_entry_focus_out_event_cb), composer);
+
+	entry = e_msg_composer_hdrs_get_bcc_entry (hdrs);
+	g_signal_connect (entry, "focus_in_event", G_CALLBACK (composer_entry_focus_in_event_cb), composer);
+	g_signal_connect (entry, "focus_out_event", G_CALLBACK (composer_entry_focus_out_event_cb), composer);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]