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 90608 - select and middle click gives unexpected results
select and middle click gives unexpected results
Status: RESOLVED DUPLICATE of bug 81880
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.0.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-08-13 04:14 UTC by Rodd Clarkson
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rodd Clarkson 2002-08-13 04:14:20 UTC
middle clicking to paste at the end of a selection doesn't work (as expected)

Steps to reproduce.

1. Open gedit type in the following text:

test1

test2
test3

2. Select test1 by starting at the beginning at the end of the line and
dragging the cursor down one line.

3. Place the pointer at the start of test3 and middle click.  test1
(including the new line) should be pasted as expected and the selection
will remain highlighted.

4. Place the pointer in the line just below test1 and middle click. 
Nothing is pasted (or at least nothing appears to be pasted - it may be
pasting to the selected area) and the selection is no longer highlighted.

5. Highlight the test in test1.

6. Place the pointer at the end of test3 and middle-click.  test should be
pasted.

7. Now place the pointer between the t and 1 in test1 (just after the
highlight) and middle-click.  Again, the highlighting disappears and no
paste has been preformed.

Expected behavior:

I would expect text to be pasted in point 3, 4, 6 and 7.  Also, after
pasting the highlighted text should remain highlighted.

It appears that middle-click is trying to replace highlighted text instead
of simply pasting where the cursor is.  If this is the case then this is
inconsistent behavior that creates confusion.  While is 'might be'
appropriate for selected text in one window to be pasted into the selected
region of another window, it is unclear why you would select text and then
middle-click to replace that text (with the same thing).

In short, middle-click needs to paste content regardless of the cursor
position.
Comment 1 Paolo Maggi 2002-08-13 07:03:44 UTC
Are you able to reproduce this bug in gtk-demo (GtkTextView demo),
testtext and/or bugs-buddy ?
Comment 2 Rodd Clarkson 2002-08-14 00:57:21 UTC
I don't have gtk-demo or testtext, but I can reproduce it in bug-buddy.
Comment 3 Paolo Maggi 2002-08-14 08:22:59 UTC
Then, I think this is a GtkTextView bug.
Comment 4 Havoc Pennington 2002-10-11 22:33:22 UTC
UI question
Comment 5 Calum Benson 2002-10-21 17:46:21 UTC
My comment in #81880 probably applies here too... i.e. without having
considered it deeply, my first reaction would be that selecting then
middle-clicking to paste should do the same (and leave you in the same
state) as selecting, pressing Ctrl+C, moving cursor to insertion point
and pressing Ctrl+V.  I could well be missing some subtlety or other
though...
Comment 6 Luis Villa 2002-12-05 22:02:30 UTC
Is this a dup of bug 81880, then, Calum?
Comment 7 Calum Benson 2002-12-13 17:42:09 UTC
Pretty much, I guess.

*** This bug has been marked as a duplicate of 81880 ***