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 301006 - Can't cut/paste colors in colormap dialog
Can't cut/paste colors in colormap dialog
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.2.x
Other All
: Normal trivial
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-04-17 20:51 UTC by Albert Astals Cid
Modified: 2008-01-15 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch fixing the bug (1.02 KB, patch)
2006-05-25 23:28 UTC, Michael Natterer
committed Details | Review

Description Albert Astals Cid 2005-04-17 20:51:18 UTC
Please describe the problem:
 Ctrl+X and Ctrl+C operate in the image and not in the HTML notation box in 
the colormap dialog 

Steps to reproduce:
1. Open an image 
2. Change image to indexed mode 
3. Open colormap dialog 
4. Press Ctrl+X and then Ctrl+C 
 

Actual results:
The image gets cut and then pasted  

Expected results:
I would expect that the content of the HTML notation box get cut and then 
pasted 

Does this happen every time?
Yes 

Other information:
This was working on 2.0.x
Comment 1 Sven Neumann 2005-04-18 16:23:17 UTC
Well, in GIMP 2.2, we finally have global accelerators and Cut and Paste is
taken by them. Might be possible to fix this by looking at the widget receiving
the event.

Note that you can of course copy and paste using the primary selection instead
of the clipboard. This means that you copy by selecting the text (double-click)
and paste using your middle mouse button. This probably doesn't work on Win32
though.
Comment 2 Albert Astals Cid 2005-04-18 17:40:06 UTC
Yeah, copying and pasting with central mouse button works but what i want to 
do is cut, write 00000 as color to identify which part of the image as that 
color and then paste the color again to put it back to its original color so 
middle mouse button copy does not help here :-( 
Comment 3 Michael Natterer 2006-05-25 23:28:24 UTC
Created attachment 66233 [details] [review]
Patch fixing the bug

Attached patch gives all key events to the focus widget first
if it is a text widget. Not sure if this is the right thing to do.
Comment 4 popolon 2006-05-28 10:46:56 UTC
I just seen the same bug on gimp-2.3.7, when I wanted to insert on each layer name the time of frame (for gif animation ex: '(350ms)') on several frames.

The patch resolved the bug for my case.
Comment 5 Sven Neumann 2006-05-29 11:35:41 UTC
The proposed patch looks like the right thing to do.  As it is simple enough, it should probably even go into the 2.2 tree.
Comment 6 Michael Natterer 2006-05-29 12:34:15 UTC
Fixed in both branches:

2006-05-29  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdock.c (gimp_dock_key_press_event): make sure
	text widgets get all key events first. Fixes bug #301006.