Re: Idiot question



Am 18.01.2004 10:53 schrieb(en) Mpiktas:
> I think not, because it happens to me too (Debian Sid, Gnome,  
> Metacity, Balsa 2.0.15). If I try X windows way to copy email address  
> (select copies to clipboard, middle mouse button click copies from  
> clipboard) it does not work, because the From address is selected and  
> it overwrites your desired selection. If you use M$ Windows way of  
> CTRL-C and CTRL-V it works. The simple workaround would be not to  
> highlight From address, then both ways will work. In my opinion  
> highlighting From address is not useful anyways.

same goes for using menu-basec c&p, it doesn't work either. I raised  
this issue half a year ago, but I don't know why the address gets  
selected at all, I can't find any code doing this in sendmsg-window.c,  
all I have is a small private patch to focus the textarea in all  
situations, see attachment.

Darko Obradovic
diff -ruN balsa-2.0.15/src/sendmsg-window.c balsa-2.0.15-no_select_on_compose/src/sendmsg-window.c
--- balsa-2.0.15/src/sendmsg-window.c	2003-09-24 12:16:13.000000000 +0200
+++ balsa-2.0.15-no_select_on_compose/src/sendmsg-window.c	2004-01-17 18:27:30.538359368 +0100
@@ -2882,11 +2882,6 @@
 
     gtk_widget_show(window);
 
-
-    if (type == SEND_NORMAL || type == SEND_FORWARD_ATTACH || 
-	type == SEND_FORWARD_INLINE)
-	gtk_widget_grab_focus(bsmsg->to[1]);
-    else
 	gtk_widget_grab_focus(bsmsg->text);
 
     if (type == SEND_FORWARD_ATTACH) {

PGP signature



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