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 139349 - Color picker should not open a new window (should use a dockable window)
Color picker should not open a new window (should use a dockable window)
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.0.x
Other All
: Normal enhancement
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2004-04-07 11:28 UTC by Ignas Mikalajunas
Modified: 2006-01-18 02:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Tga gimp can't load (16.00 KB, image/targa)
2004-04-09 09:20 UTC, Ignas Mikalajunas
Details

Description Ignas Mikalajunas 2004-04-07 11:28:03 UTC
If you will try using color picker (o) and fill tool (shift + b) you will notice
that it is a major inconvenience instead of doing this:

Press o
Pick color
Press shift + b
Click on the place you want to flood fill

do this:

Press o
Pick color
close the picker window (you cant select another tool without activating the
image window)
press shift + b
fill the area
Comment 1 Raphaël Quinet 2004-04-07 14:07:12 UTC
This bug could be summarized like this: Color picker should not open a new window.
This is what causes the problem because the new window that pops up after picking
a color steals the focus from the image window.  The fact that the new window pops
up in front of the image window (depending on your preferences and WM setup) only
makes things worse, but the basic problem is that a new window is created.

It would be nicer if the color picker (and other tools: crop, transform and text)
would use or re-use a dialog window that could be placed in a dock instead of
popping up a new window every time.
Comment 2 Pedro Gimeno 2004-04-08 15:16:46 UTC
Am I missing something or would this be automatically fixed after bug #119878 is
fixed? In the title it mentions "all docks" and later "all windows". If it
applies to all windows this wouldn't be a problem.
Comment 3 Sven Neumann 2004-04-08 15:49:27 UTC
Yes, the fix for bug #119878 should get around this problem nicely. Since the
window is session managed, it also does not get into the way so I think it's not
necessary to get rid of it.

What would be nice would be to add the Ctrl-picks-color feature available for
the paint tool to the bucket-fill tool. But then the bucket-fill tool already
uses all modifiers.
Comment 4 Ignas Mikalajunas 2004-04-08 15:53:54 UTC
Yes fixing bug #119878 would solve my problem, yet being able to dock windows
like color picker and other tools would be nice anyway. Or at least checking
whether the Color picker window is still opend and can be refreshed without
geting focused.
Comment 5 Ignas Mikalajunas 2004-04-09 09:20:46 UTC
Created attachment 26505 [details]
Tga gimp can't load

It has no alpha channel, is RLE compressed, black and white (RGB)
Comment 6 Michael Schumacher 2004-04-09 09:25:53 UTC
This attachment should have gone to bug 139343, right?
Comment 7 Ignas Mikalajunas 2004-04-09 09:27:23 UTC
oh sorry :( mozill'as history tricked me while pasting.
Comment 8 Ignas Mikalajunas 2004-04-09 09:29:34 UTC
Is there a way to move or remove the attachment ?
Comment 9 Raphaël Quinet 2004-04-09 11:14:54 UTC
Don't worry about the attachment: we will just ignore it.  I changed the summary
of the bug report and added a mention about the fact that the window should be
dockable.  So even if bug #119878 is eventually fixed when we start using GTK+
2.4, we can keep this open as a separate enhancement.
Comment 10 Sven Neumann 2004-04-09 12:31:54 UTC
As a quick fix, we should probably replace the call to gtk_window_present() with
gtk_window_show().
Comment 11 Sven Neumann 2004-04-16 13:52:26 UTC
I've committed the following simple fix to both branches:

2004-04-16  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpcolorpickertool.c
	* app/tools/gimpmeasuretool.c: don't use gtk_window_present() to
	raise the tool dialog since it also moves the focus away from the
	image window. Fixes the problem described in bug #139349.

IMO we can close this report as FIXED now but since the focus moved away from
the original bug-report to other things, perhaps it should be kept open. I am
undecided...
Comment 12 Sven Neumann 2004-04-16 14:12:11 UTC
Oh well, it doesn't really fix the problem, it only makes it less worse. So we
better keep this report open.
Comment 13 weskaggs 2005-03-01 18:39:06 UTC
Just a note that bug #119878, which supposedly was going to solve this problem
automatically once fixed, is now supposedly fixed, but the problem still exists.
Comment 14 Ben Foote 2006-01-18 02:06:18 UTC
Has there been any progress on this bug? And yes, it is a bug. The color picker shouldn't pop up a dialog. Its extremely frustrating to the workflow. If a person wants to know what color they've just selected, they could just as easily double click on the color, once its selected.

I've used the GIMP for years, and this "feature" has annoyed me since 1.3ish. For pixel art, where you are constantly selecting new colors, this cuts your productivity way down. In fact, its the sole reason that I don't use GIMP exclusively for pixelling. If this was fixed, I could use GIMP for all my image needs.
Comment 15 Simon Budig 2006-01-18 02:55:39 UTC
I don't know exactly when, but this enhancement request has been solved in gimp CVS, now the color picker no longer opens up a dialog unless requested by the user. It is not exactly a dockable window shared between tools, but the usability problem is resolved.

Ben: See my reply to your mail to gimp-user.