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 121512 - All sorts of weirdness with more than one gedit window open
All sorts of weirdness with more than one gedit window open
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
unspecified
Other other
: Normal normal
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks: 131953
 
 
Reported: 2003-09-05 01:21 UTC by Rodd Clarkson
Modified: 2005-12-15 23:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rodd Clarkson 2003-09-05 01:21:36 UTC
Distribution: Red Hat Linux release 9 (Shrike)
Package: gedit
Severity: normal
Version: GNOME2.3.90 unspecified
Gnome-Distributor: GARNOME
Synopsis: All sorts of weirdness with more than one gedit window open
Bugzilla-Product: gedit
Bugzilla-Component: general
Bugzilla-Version: unspecified
Description:
Description of Problem:

Gedit does some really weird things when more than one window is open.

One Example:
1. Open two gedit windows on the one screen and place them side by side.
 (I clicked the gedit icon in the menu)
2. Focus the left gedit window and click File > Open
3. Focus the right gedit window and click File.  Gedit will seem
unresponsive.

Comments:

I would expect the right gedit window to show the file menu and even
allow you to open a file open dialog for that window.  I've been using
gedit for years and it surprised me when this happened (I had a window
on another desktop) and I was initially confused as to why gedit seemed
unresponsive.

Another example:
1. Open a terminal and start gedit from the command line 'gedit &'
2. Open a file in gedit.
3. Open another gedit window using the Applications menu
4. Click on the original gedit window and click File > Open
5. Click on the second gedit window.
6. Click on the Open File dialog (opened from the first window) and
select a file and open it.  The file appears in the second (wrong)
window.

Further testing shows that the file opens in the gedit window that was
last focused, regardless of which window opened the Open File dialog.

Just to add a twist, if you skip step two, the initial gedit window
opens the file, and not the new window.

Consider the implications of this if gedit is run over multiple windows
as it was for me.

I open a gedit window on one screen, and then having opened one file I
realized I needed another open.  I clicked File > Open and then got
distracted.  I moved to another window, opened another gedit window to
find it unresponsive.  I realised (and most people wont) that it was
probably due to the file dialog from the first window.  I opened the
file I needed and move back to the second gedit to find the document
opened their.

What needs to change?

For starters, gedit needs to allow each instance to open a file dialog
of it's own, and regardless of the state of other gedit windows, it
should always be responsive.




------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-09-04 21:21 -------

Reassigning to the default owner of the component, maggi@athena.polito.it.

Comment 1 Timo Saarinen 2005-08-31 10:55:49 UTC
This bug still exists in GEdit 2.10.2. When there are more than one windows open
the dialogs open for wrong window and there are weird copy/paste problems. This
phenomenon doesn't happen always but too frequently to be ignored.

IMHO, severity of this bug should be "major".
Comment 2 Paolo Borelli 2005-12-15 13:08:06 UTC
finally fixed on HEAD and gedit 2.13.0 after the new_mdi merge.
Comment 3 Rodd Clarkson 2005-12-15 23:50:18 UTC
Thanks Paolo