GNOME Bugzilla – Bug 322239
Fields in mail composer lose selection when window loses focus
Last modified: 2006-06-03 09:43:02 UTC
When using the mail composer and you have selected the text in one of the fields at the top (To, CC, BCC, etc. but not Subject), the selection is lost when the window loses focus. This is most noticable when you select the address in the To field, switch to another window and middle-click - it will not paste because the selection has been lost.
Created attachment 65890 [details] [review] A partial fix. This patch is for eds.
The above patch is just effective in preserving selected text when focus-out. When focus-in after focus-out, the selected text has gone. It is caused by composer/e-msg-composer.c. For this reason, to fix completely this bug needs more work.
Created attachment 65896 [details] [review] update patch My previous comment was wrong. I managed to break down this bug only in eds.
hiroyuki, your patch looks fine, but it breaks ABI. I would suggest to add that variable to priv or as a g_object_set_data or so.
Thank you for your review. I will revise my patch with priv using g_type_class_add_private. I don't like g_object_get_data.
Created attachment 66575 [details] [review] revised patch Use priv structure with g_type_class_add_private for the sake of ABI compatibility. The rest of code is the same as previous one. I think whole code of e-name-selectory-entry should be rewrite using private structure when ABI broken allows.
looks fine to commit. Thanks for your patch.
Committed to HEAD.
sorry..forgot to resolve the bug.
(message to myself when i'm back at my own computer:) should check if this has an impact on bug 339098 and bug 207728
bug 339098 is the same one, but I do not think bug 207728 is the same one. That is another issue.