After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 309924 - Double-clicking should select word
Double-clicking should select word
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: 0.10
Assigned To: Evince Maintainers
Evince Maintainers
: 377774 484748 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-10 00:36 UTC by Shaun McCance
Modified: 2007-10-08 16:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Shaun McCance 2005-07-10 00:36:58 UTC
Double-clicking on text in Evince should select a word, as it does in most other
selectable text views.  Also, triple-clicking should probably select either the
line or the sentence.
Comment 1 Sven Arvidsson 2005-09-07 13:33:50 UTC
Another small addition to text selection would be a right click menu, similar to
other areas of text you can select in GTK programs. At least "Copy" and "Select
all" should in there.
Comment 2 Carlos Garcia Campos 2006-11-21 16:03:13 UTC
*** Bug 377774 has been marked as a duplicate of this bug. ***
Comment 3 Nickolay V. Shmyrev 2007-02-11 19:25:19 UTC
Nice to have in near future
Comment 4 Adam Petaccia 2007-02-14 00:46:49 UTC
I like how web browsers grab the paragraph on a triple click.  That might be good for consistancy.
Comment 5 Ricardo Markiewicz 2007-06-09 06:33:35 UTC
I was trying to figure out how to implement this feature. As I can see, there is no way to iterate over the document text, am I wrong?

The only way I found to get a selection is calling compute_selections and passing a rectangle. If this is the only way we have to get text selected, I think that is not possible right now to make this feature (I made a hack that use a growin rectangle, but has an strange behavior on complex documents :).

Ideas?
Comment 6 Nickolay V. Shmyrev 2007-06-09 07:22:38 UTC
Poppler work is certainly required both for ally and complex selections. Current interface is not accepatable.
Comment 7 Benjamin Gramlich 2007-08-25 03:29:52 UTC
Ricardo,

Are you still working on a fix to this issue? I'm just interested in giving it a go, but don't want to duplicate any work.

Comment 8 Ricardo Markiewicz 2007-08-25 22:43:49 UTC
Not at the moment, I'm a little busy with others stuff.
Comment 9 Carlos Garcia Campos 2007-08-31 20:46:28 UTC
Although this bug is marked as gnome-love is not actually so easy, since it also requires changes in poppler. Poppler changes were added yet (thanks to krh) and I've just committed the evince stuff to svn trunk. It supports double and triple click selections as well as double/triple click + drag selections. 
Comment 10 Carlos Garcia Campos 2007-10-08 16:43:41 UTC
*** Bug 484748 has been marked as a duplicate of this bug. ***