RSS/Atom feed Twitter
Site is read-only, email is disabled

file opening via image window menu looses current file position

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

file opening via image window menu looses current file position Alexander Rabtchevich 13 Jan 17:19
  file opening via image window menu looses current file position Sven Neumann 13 Jan 17:33
  file opening via image window menu looses current file position Sven Neumann 15 Jan 20:52
Alexander Rabtchevich
2007-01-13 17:19:40 UTC (almost 18 years ago)

file opening via image window menu looses current file position

There are currently two options to open a file when other image window already exists: to open it via main GIMP window or to do it via image window. They are rather equal from the user's POV and the choice (unconscious) depends on the currently active window (at least for me).

But the result differs: in case of main window menu the file cursor remains at the position of the last opened file. It is very convenient. In case of image window the cursor is "lost" and no file is selected. Even more, trying to open a file via main menu would have the same result - the cursor is already lost.

I think it is a bug and would suggest the next behavior in case of opening a file via image menu:
1. the file cursor is set to the last file opened in the session as currently is done via the menu from GIMP main window. 2. the file cursor is set to the current file from the window with the image (even if it is opened from a directory other than the last one) if it isn't a new file. The result of the second option would become equal to the first one if only one image is opened simultaneously.

The file selection behavior could be based on personal preferences (in settings).

Sven Neumann
2007-01-13 17:33:08 UTC (almost 18 years ago)

file opening via image window menu looses current file position

Hi,

On Sat, 2007-01-13 at 18:19 +0200, Alexander Rabtchevich wrote:

There are currently two options to open a file when other image window already exists: to open it via main GIMP window or to do it via image window. They are rather equal from the user's POV and the choice (unconscious) depends on the currently active window (at least for me).

But the result differs: in case of main window menu the file cursor remains at the position of the last opened file. It is very convenient. In case of image window the cursor is "lost" and no file is selected. Even more, trying to open a file via main menu would have the same result - the cursor is already lost.

The behaviour with GTK+ 2.10 (which is what we are going to depend on for GIMP 2.4) is even different from that. No file is ever selected. What you are seeing here is probably a bug in GTK+. In any way it's certainly not intentional behavior. So please have a look at the code and check what GIMP is actually doing. If there's an inconsistency in the GIMP code, we need to fix it there. If it's a GTK+ bug, we should make sure that it gets reported with a reproducable test case.

I think it is a bug and would suggest the next behavior in case of opening a file via image menu:
1. the file cursor is set to the last file opened in the session as currently is done via the menu from GIMP main window. 2. the file cursor is set to the current file from the window with the image (even if it is opened from a directory other than the last one) if it isn't a new file. The result of the second option would become equal to the first one if only one image is opened simultaneously.

That's exactly what the code is trying to do, IIRC.

The file selection behavior could be based on personal preferences (in settings).

Definitely not. The file selection dialogs should simply behave correctly. There is no need to ask the user for a decision here.

Sven

Sven Neumann
2007-01-15 20:52:42 UTC (almost 18 years ago)

file opening via image window menu looses current file position

Hi,

On Sat, 2007-01-13 at 18:19 +0200, Alexander Rabtchevich wrote:

There are currently two options to open a file when other image window already exists: to open it via main GIMP window or to do it via image window. They are rather equal from the user's POV and the choice (unconscious) depends on the currently active window (at least for me).

I have just committed a small change that removes this ambiguity. Both menus now connect to the same action. The file-chooser dialog is then initialized with the current image. That's the image that the action was being called from, or, if being called from the toolbox, the active image. The active image is always the last-used image.

Sven