Re: [evolution-patches] [PATCH] Cut/Copy/Paste in composer entries
- From: Hans Petter Jansson <hpj ximian com>
- To: Not Zed <notzed ximian com>
- Cc: evolution-patches lists ximian com
- Subject: Re: [evolution-patches] [PATCH] Cut/Copy/Paste in composer entries
- Date: Mon, 14 Mar 2005 15:52:38 -0600
On Mon, 2005-03-14 at 10:40 +0800, Not Zed wrote:
> you could just add the api for the post to field.
>
> imo that whole api is pretty dumb anyway, it should just be variables
> in the public structure, since the whole thing is 'internal', its just
> a lot of bothersome abstraction.
Ok, I found that the API was already there, but it's called
_get_post_to_label() (which returns an entry still).
Revised the patch.
--
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 14 Mar 2005 21:49:27 -0000
@@ -3306,6 +3306,22 @@ 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);
+
+ entry = e_msg_composer_hdrs_get_post_to_label (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]