GtkSpinButton takes primary selection when changing
Submitted by Sean Egan
Link to original bug (#448003)
Description
Please describe the problem: When changing the value of a GtkSpinButton via the up and down buttons, it appears to steal ownership of the primary selection (without actually selecting anything), causing any text that was selected to become deselected.
This appears to only happen if clicking on the arrow buttons also gives that widget focus. If the GtkSpinButton was already focused in the window
Steps to reproduce: To reproduce in Gedit:
- Type some text in the Gedit editor window
- Select some of that text
- Open the Preferences window
- Turn on "Display right margin" and hit the up or down arrow button on "Right margin at column"
Actual results: The text selected in the editor window is deselected, and no text in the spin button is selected
Expected results: Ideally, the text in the editor would remain selected. Alternately, the text in the spin button would be selected.
Does this happen every time? Yes.
Other information: This bug is originally from https://developer.pidgin.im/ticket/847
Version: 3.22.x