[findwindow] Cannot paste with 3rd mouse button if a previous search already performed.

Bug #314181 reported by jmb0007
4
Affects Status Importance Assigned to Milestone
synaptic (Ubuntu)
Opinion
Low
Unassigned

Bug Description

Binary package hint: synaptic

Hi

In Synaptic, you can use the "cut and paste" functionality to place search terms into the Search windows text field. (3° mouse button to past) This is not refering to the Quick Search, but the Search dialog box you get when you click the Search button in the toolbar at the top of the window.

When you open the Search window the text of the last search criteria is selected. This causes the paste function, accessed by clicking the scroll wheel, to no longer function correctly. Clicking the scroll wheel should "paste" the "cut" text into the Search field. Instead clicking the scroll wheel results in no text being pasted into the Search field.

== HOW TO REPRODUCE ==
- open the 'findwindow' (edit->search)
- enter a string in the text entry and search
- Select (highlight) a string with your mouse
- open the 'findwindow' (edit->search) again
- paste with the 3rd button.

Result:
You can't paste. The buffer has been replaced by the highlighted text in the find window

Here a very simple patch to solve the problem

diff -r synaptic-0.62.2ubuntu2/gtk/rgfindwindow.cc synaptic-0.62.2ubuntu2-jmb0007/gtk/rgfindwindow.cc
45c45
< gtk_editable_select_region(GTK_EDITABLE(entry), 0, -1);
---
> gtk_editable_select_region(GTK_EDITABLE(entry), 0, 0);

regards
jm

Tags: patch debdiff
Revision history for this message
Duane Hinnen (duanedesign) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You might find the following links useful. They cover "Best Practices" and how to get your patch reviewed and possibly merged in Ubuntu. Good luck and thank you for your contribution.

https://wiki.ubuntu.com/UbuntuDevelopment/Patches

https://wiki.ubuntu.com/SponsorshipProcess

Revision history for this message
Duane Hinnen (duanedesign) wrote :

I was able to reproduce this behavior.

I did notice that right clicking in the Search Field and then selecting "paste" in the contextual window did work appropriately.

description: updated
Changed in synaptic:
status: New → Confirmed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

Confirmed in Installed: 0.63.1ubuntu1
@duanedesign, the reporter means paste a previously highlighted text with the middle button of the mouse which is different from CTRL+C/CTRL+V

Changed in synaptic (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
tags: added: patch
tags: added: bitesize
description: updated
summary: - synaptic enhancement : find window
+ [findwindow] Cannot paste with 3rd mouse button if a previous search
+ already performed.
Revision history for this message
Ian Fleming (iflema-deactivatedaccount) wrote :
tags: added: debdiff
removed: bitesize
Changed in synaptic (Ubuntu):
status: Triaged → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.