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 500930 - Move the Tools dialog to the Toolbox tab in preferences
Move the Tools dialog to the Toolbox tab in preferences
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
git master
Other All
: Normal normal
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2007-12-01 21:27 UTC by Kevin Cozens
Modified: 2009-08-01 14:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
pref dialog screenshot. (70.89 KB, image/png)
2009-06-30 15:19 UTC, Stephen Griffiths
  Details
makes toolview a standalone widget (39.06 KB, patch)
2009-07-01 09:59 UTC, Stephen Griffiths
none Details | Review
two patches creating and using GimpToolEditor, from GimpToolView (90.00 KB, patch)
2009-07-03 10:30 UTC, Stephen Griffiths
none Details | Review
as above (90.00 KB, application/x-tar)
2009-07-03 10:31 UTC, Stephen Griffiths
  Details
patch 1 (31.34 KB, patch)
2009-07-05 08:44 UTC, Stephen Griffiths
committed Details | Review
second of two (50.28 KB, patch)
2009-07-05 08:46 UTC, Stephen Griffiths
committed Details | Review
use new buttons instead of shift+click (6.46 KB, patch)
2009-07-23 10:22 UTC, Stephen Griffiths
rejected Details | Review
Make gimptooleditor changes cancellable and use that. (5.53 KB, patch)
2009-07-29 12:09 UTC, Stephen Griffiths
needs-work Details | Review
make GimpToolEditor changes cancellable. UPDATED previous patch to free string array as suggested. (7.08 KB, patch)
2009-07-31 01:51 UTC, Stephen Griffiths
needs-work Details | Review
make GimpToolEditor changes cancellable. (updated again) (8.74 KB, patch)
2009-08-01 13:55 UTC, Stephen Griffiths
committed Details | Review

Description Kevin Cozens 2007-12-01 21:27:47 UTC
The topic of moving the Tools dialog box to the Toolbox tab in Preferences was discussed amonst the GIMP developers on IRC (and/or the mailing list). Adding this report so the idea doesn't get forgotten.
Comment 1 Kevin Cozens 2007-12-01 21:29:53 UTC
Setting to NEW and adding gnome-love keyword. This could easily be done by someone who wants to get started on GIMP development.
Comment 2 Sven Neumann 2007-12-01 22:41:56 UTC
If this is supposed to be handled as a gnome-love bug, then we should add some words on the motivation of this change.

The Tools dockable allows to reorder the tools in the toolbox and it allows to show/hide tools (see http://docs.gimp.org/en/gimp-dialogs-misc.html#gimp-tools-dialog). That makes it a configuration dialog. Thus it should better be accessible from the Preferences dialog, perhaps from the tab labeled "Toolbox".
Comment 3 Stephen Griffiths 2009-06-30 15:19:46 UTC
Created attachment 137629 [details]
pref dialog screenshot.

here is the picture requested.
Comment 4 Michael Schumacher 2009-06-30 15:28:46 UTC
The tools area should use all of the the vertical space that is available.
Comment 5 peter sikking 2009-06-30 15:38:44 UTC
cool that you are working on this.

I am sure that you will work the vertical issue out

what I would like to see (as guiguru, not as a user) is at least a title (like "Tools configuration") with some natural margin above it to separate it from those 3 checkboxes above.
Comment 6 Stephen Griffiths 2009-07-01 09:59:52 UTC
Created attachment 137678 [details] [review]
makes toolview a standalone widget

this is the current patch, I don't know how close to finished it is or if it is the right approach.  Better to find out now I guess
Comment 7 peter sikking 2009-07-01 13:16:56 UTC
after having a look at the existing Tools dialog, I actually conclude that it belongs in the  Edit menu, right below Keyboard shortcuts as a non-dockable dialog.

this additional to the placement in the preferences.

having it in both places makes it findable in the most obvious spots (not a bad thing).
Comment 8 Sven Neumann 2009-07-01 20:52:03 UTC
Is it really worth keeping all this in the Edit menu? One could probably argue that pretty much all settings that are currently in the Preferences would be easier to locate if they would be duplicated in other places. But doesn't this lead to total menu overload?

I didn't look at the patch in detail, but it looks good on first sight. I just wonder if the widget should perhaps be called GimpToolsEditor instead of GimpToolView ?
Comment 9 Stephen Griffiths 2009-07-03 10:30:27 UTC
Created attachment 137775 [details] [review]
two patches creating and using GimpToolEditor, from GimpToolView

here are two patches, now using gimp container tree view as mitch advised.

*two patches so the file rename gets recorded by git properly
*this does not yet implement the second dialog suggested by guiguru
Comment 10 Stephen Griffiths 2009-07-03 10:31:58 UTC
Created attachment 137776 [details]
as above

as above, marked tar file as a patch, correcting.
Comment 11 Stephen Griffiths 2009-07-05 08:44:12 UTC
Created attachment 137870 [details] [review]
patch 1

first of two
Comment 12 Stephen Griffiths 2009-07-05 08:46:56 UTC
Created attachment 137871 [details] [review]
second of two

these two patches remove the old funcs for toolview
create tool editor and use it with:
preferencese dialog and
tools configuration dialog.
Comment 13 Martin Nordholts 2009-07-21 16:05:21 UTC
Let's make sure to do this for 2.8.
Comment 14 Martin Nordholts 2009-07-21 22:25:16 UTC
I split up your commits in nicer self-contained chunks and pushed to git master. Shit, I just noticed I accidentally set myself as Author in the last two commits :( Sorry about that. Anywhere the commits are:

commit 4572cb9e74941330357f6872a50bca777677970d
Author: Martin Nordholts <martinn@src.gnome.org>

    app: Add the GimpToolEditor to preferences

commit ce5cfe0f1c14ca44aad3024c31991cb79aae00ef
Author: Martin Nordholts <martinn@src.gnome.org>

    app: Rename gimptoolview.[ch] to gimptooleditor.[ch]

commit 450db18abb57f540889eb38f1c13297bedbd4c10
Author: Stephen Griffiths <scgmk5@gmail.com>

    app: Convert GimpToolView into a non-dockable GimpToolEditor

commit c53113d0cca31f8a106791977363d6b0d34aa1e5
Author: Stephen Griffiths <scgmk5@gmail.com>

    app: Remove Tools dockable

The only thing we need to do now before we can close this bug report is making tool rearrangements cancellable when the Cancel button in Preferences is pressed.
Comment 15 Stephen Griffiths 2009-07-22 12:13:21 UTC
I am not worried about who is listed as the author :), I will start working on making the tool re-arrangement cancellable on the weekend.
Comment 16 Stephen Griffiths 2009-07-23 10:22:24 UTC
Created attachment 139058 [details] [review]
use new buttons instead of shift+click

Enselic suggested in irc that shift+click (raise to top and lower to bottom) is not very discoverable, and buttons should be added instead.

this patch implements that suggestion.
Comment 17 Michael Natterer 2009-07-23 11:14:10 UTC
I don't see why these up/down buttons would do it differently than
the ones in the layers/channels/paths dialogs.

I'm not totally sure here, but aren't the buttons just something
that has to be there because the actual way of reordering (DND)
is not very discoverable either?
Comment 18 Martin Nordholts 2009-07-23 12:32:12 UTC
My mistake, adding those buttons doesn't make sense, sorry for the wasted hacking :(
Comment 19 Stephen Griffiths 2009-07-29 12:09:36 UTC
Created attachment 139466 [details] [review]
Make gimptooleditor changes cancellable and use that.
Comment 20 Michael Natterer 2009-07-30 11:27:33 UTC
Looks nice, but you need to add a finalizer and free the name array there.
Comment 21 Stephen Griffiths 2009-07-31 01:51:34 UTC
Created attachment 139602 [details] [review]
make GimpToolEditor changes cancellable. UPDATED previous patch to free string array as suggested.
Comment 22 Martin Nordholts 2009-08-01 12:44:09 UTC
Thanks, but it only resets the order of the tools, not their visibility, which it also needs to do. Other than that, the patch looks fine to me.
Comment 23 Stephen Griffiths 2009-08-01 13:55:31 UTC
Created attachment 139689 [details] [review]
make GimpToolEditor changes cancellable. (updated again)

Thanks Martin I did not even think about visibility.
Comment 24 Martin Nordholts 2009-08-01 14:28:10 UTC
Thanks, seems to work fine now, I've pushed the commit to master after making some name changes that IMO gives clearer semantics:

commit 6a41c872f628fc30ceb9fa02299824f06f76e088
Author: Stephen Griffiths <scgmk5@gmail.com>
Date:   Wed Jul 29 21:55:31 2009 +1000

    app: Make GimpToolEditor changes cancellable

    Allow the user to cancel rearrangements of tool order and visibility
    in Preferences. See enhancement request/bug #500930.

 app/dialogs/preferences-dialog.c |   21 ++++---
 app/widgets/gimptooleditor.c     |  116 +++++++++++++++++++++++++++++++++-----
 app/widgets/gimptooleditor.h     |   14 +++--
 3 files changed, 120 insertions(+), 31 deletions(-)

we can now consider this FIXED and deal with any other issues that pop up in separate bug reports.