Re: Paste should be insensitive when unavailable - but when?
Paul Smith <[email protected]> Tue, 6 Jan 2004 23:14:13 +0000 (GMT)
| Newsgroups | gmane.editors.conglomerate.general |
|---|---|
| Message-ID | <[email protected]> |
> > Sets sensitivity of the Paste button/toolbar/context menu depending
> on
> > the results of cong_document_can_paste(CongDocument*)
>
> It would be nice to have the code to do this, even if we can't yet
> use
> it effectively.
>
Patch attached to Bugzilla (Bug 126089)
> You should look at the paste routine and test for all the conditions
> in
> which it can fail. Look in src/xmledit.c, in function
> cong_document_paste_clipboard_or_selection, and potentially in the
> functions it calls.
>
I've attached this comment to Bugzilla to remind me :)
> I'm now a lot more knowledgable on how the X clipboard works, so I
> can
> have a look into this if you like.
Yes please.
> Looking at cong_document_paste_clipboard_or_selection, it looks like
> it'll be affected by CongDocument "cursor_change", and by whatever
> signal we can set up to monitor the X clipboard.
>
Also noted in Bugzilla (Bug 126089)
Thanks!
Paul
=====
-----------------------------------------------------
Paul Smith
Postgraduate Student
Department of Mathematics
School of Engineering, Computer Science,
and Mathematics
University of Exeter
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html