#448600 SpinCtrl selects text on focus what overwrites clipboard

Package:
libgtk2.0-0
Source:
gtk+2.0
Description:
GTK graphical user interface library - old version
Submitter:
Florian Lohoff
Date:
2010-01-28 04:39:07 UTC
Severity:
minor
#448600#5
Date:
2007-10-30 10:58:24 UTC
From:
To:
Hi,
when double clicking on a contact and the "Edit Contact" dialog
opens wammu overwrites the clipboard with the phonebook location
number which is the first entry in the form which is selected.
This also happens when using "Create" -> "Contact" then the clipboard
gets overwritten with a 0.

This is really annoying as one edits a contact and trys to insert
a number finds himself with a overwritten clipboard.

Flo

#448600#10
Date:
2007-10-30 12:43:53 UTC
From:
To:
Hi

Dne Tue, 30 Oct 2007 11:58:24 +0100
Florian Lohoff <flo@rfc822.org> napsal(a):

This looks like wxGTK/wxPython issue to me as Wammu definitely does not
touch clipboard itself. However I will look for workaround.

#448600#15
Date:
2007-10-30 13:18:09 UTC
From:
To:
Most likely - The first input field is automatically selected
and most likely copied to the clipboard automatically.

Flo

#448600#20
Date:
2007-10-30 13:40:59 UTC
From:
To:
Dne Tue, 30 Oct 2007 14:18:09 +0100
Florian Lohoff <flo@rfc822.org> napsal(a):

The problem is thet IntCtrl field is copied to clipboard whenever is
activated (try creating new sms and press tab to get to location).

#448600#25
Date:
2007-10-30 14:20:02 UTC
From:
To:
retitle 448600 SpinCtrl selects text on focus what overwrites clipboard
reassign 448600 python-wxgtk2.6 2.6.3.2.2-1
thanks

Hi

I'm reassigning this to wxPython as problem lies definitely somewhere
inside wxPython/wxWidgets.

wx.SpinCtrl (I have not verified whether non Python version behaves
same) selects whole content on gaining focus. On X11 systems this
usually leads to overwriting clipboard, what is somewhat annoying and
not consistent with other controls.

This behavior can be reproduced by starting SpinCtrl.py from
wx2.6-examples -  upon startup it overwrites whatever you had in
clipboard by 5 what is default value of SpinCtrl used there.

By clipboard I mean passive selection (the thing which is usually pasted
by pressing middle mouse button).

#448600#42
Date:
2010-01-28 04:35:57 UTC
From:
To:
reassign 448600 libgtk2.0-0 2.18.6-1
quit

actually, this is a bug in GTK. I am able to reproduce the problem
with the GtkSpinButton example at the bottom of:
http://library.gnome.org/devel/gtk-tutorial/2.17/x969.html

Cheers,
Ryan