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 169257 - "palette name" entry box is activated automatically when palette editor selected as a tab, grabbing key strokes.
"palette name" entry box is activated automatically when palette editor selec...
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.2.x
Other All
: Normal normal
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-03-05 01:07 UTC by Lee Bigelow
Modified: 2012-10-06 19:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lee Bigelow 2005-03-05 01:07:03 UTC
Distribution/Version: Debian

-create a new image
-open a layers/channel/paths dialog
-open the palettes dialog
-create a new palette called say "toast" and save it, but keep it's palette
editor dialog open
-add the palette editor for "toast" onto the layers/channel/paths dialog as a tab
-select the layers tab
-select the palette editor tab
     The "palette name" entry field will be magically activated and will grab
your key strokes, and change the palette's name to your next keystroke.  I don't
know how many times I've changed my palette's name to 'x' because I've selected
a color and tried to swap fore/back colours (not realizing the name field was
active).
     The only way to deactivate the name is to save the palette.  However, even
then, if you switch to the layer(or any other) tab, and back again, the name
field becomes once again active.
     I would expect the name field to only become active when specifically
selected or that the name of the palette would be shown but not as an entry
field (changing the name could be done through an option on the palette editors
menu, or though a button beside the name that would open up a "palette name"
entry dialog.)
Comment 1 Sven Neumann 2005-03-05 01:38:25 UTC
Press Tab once to move keyboard focus out of the entry (as in any other dialog).
Comment 2 Lee Bigelow 2005-03-05 22:50:21 UTC
That works to deactivate the entry field, but I still don't think the field
should be made active automatically when switching to the palette editor as a tab.
If your drawing, then select the palette editor tab to select a color, it's not
intuative that you would have to press tab before any of your keyboard
shortcuts, like 'x' for swap colors, would work.
What happens, more often than not, is that you select the color, press your key,
and the name of your palette has been replace with the letter you pressed.  Then
you have to retype the name of your palette in.
Comment 3 Sven Neumann 2005-03-08 15:08:03 UTC
Basically you can control this behaviour yourself. Try adding the line 

  gtk-entry-select-on-focus = 0

to your ~/.gtkrc-2.0 file. But we should try to not depend on this user setting.
Comment 4 Michael Natterer 2005-08-08 01:05:10 UTC
Doesn't address the actual problem, but at least allows restoring
of the acidentially edited name:

2005-08-08  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdataeditor.c: made hitting Escape in the name
	entry restore the data's original name. Enables undoing of
	accidential editing. Addresses bug #169257.
Comment 5 Michael Natterer 2012-10-06 19:48:52 UTC
This doesn't happen any longer because now all docks have notebook
tabs visible, which are the first widgets and get the focus.
IIRC this was a 2.8 change.