GtkEntry kill-whole-line

Tommi Komulainen <[email protected]>
Newsgroups gmane.comp.web.galeon.devel
Message-ID <[email protected]>
On Wed, 2002-11-13 at 15:52, Eivind Tagseth wrote:
> * Tommi Komulainen <[email protected]> [021113 13:42]:
> > Or do you need to edit the URL before loading it?  If so, then it's a
> > more difficult problem.  I think this 'pasting replaces current text'
> > should be supported by the gtk text entry itself (my current workaround
> > is clicking on the entry, pressing Ctrl-U² and then pasting.)
> 
> Actually, that's usually click, Ctrl-E, Ctrl-U and then pasting.  With GTK2
> this doesn't work very well, Ctrl-E opens the e-mail client and Ctrl-U doesn't
> do anything for me at all (probably bound to a shortcut, although I'm unable
> to find it).  This is a GTK-problem though, and a very annoying one at that.

Ctrl-E is now gone from CVS, so it should again work as end-of-line. 
But you won't be needing it if Ctrl-U is configured right :)  (by
default, both gtk+ and galeon defaults, it doesn't do anything.)  As I
said, it needs some tweaking to get it working the way I'm used to, such
as putting the following in .gtkrc-2.0:

binding "bash-text-entry"
{
  bind "<ctrl>u" { "move-cursor"        (display-line-ends, 1, 0)
                   "delete-from-cursor" (paragraph-ends, -1)      }
}

class "GtkEntry" binding "bash-text-entry"


Now if I only had a clue where all these 'move-cursor' and
'display-line-ends' were documented...  I don't have a clue :)

-- 
Tommi Komulainen                                 [email protected]
GPG 1024D/68388EE6    6FD6 DD79 EB38 BF6F 3533  09C0 04A8 9871 6838 8EE6
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA90nsvBKiYcWg4juYRAhzIAJwMtANa9SM+L5xCv1RKvtGgaRAnawCgweCY
1NEVFrbliX53/vukjcNSdMc=
=YJjC
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.