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 549058 - gedit incorrectly opens files in the existing window when maximized
gedit incorrectly opens files in the existing window when maximized
Status: RESOLVED DUPLICATE of bug 559280
Product: gedit
Classification: Applications
Component: general
2.20.x
Other Linux
: Normal minor
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-22 21:19 UTC by gtomcat
Modified: 2009-03-03 14:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description gtomcat 2008-08-22 21:19:23 UTC
When gedit is already running and then "gedit <file>" command is executed from a terminal window (passing a file as arg) then:
- when the existing gedit window is maximized -> it opens the file in a new gedit window,
- when the existing gedit window is not-maximized -> it opens the file as another tab in the existing window (as expected)

Expected:
When gedit is maximized, it should open next files as tabs in the existing window.
Comment 1 Paul Kishimoto 2008-10-16 06:35:05 UTC
Also experiencing this bug with
 * Ubuntu 8.10 beta
 * Gedit 2.24.0

This occurs regardless of how the file is open; i.e. using gnome-open, or opening a file via Nautilus produces the same result.
Comment 2 Paul Kishimoto 2008-10-16 06:39:44 UTC
I should also note this is a regression with respect to the behaviour I experienced with:
 * Ubuntu 8.04.1
 * Gedit 2.22.3
...which was the expected behaviour.
Comment 3 M. Niess 2008-12-04 10:15:08 UTC
I can confirm this behavior using Ubuntu 8.10 with gedit 2.24.2. This really messes with my workflow ;) The question is whether this is a gedit or nautilus bug.
Comment 4 Paul Kishimoto 2008-12-08 20:03:43 UTC
What is necessary to get this updated to NEW?
Comment 5 Paolo Borelli 2008-12-08 20:37:13 UTC
nothing in particular, we do not care about NEW vs UNCONFIRMED
Comment 6 Uwe L. Korn 2009-03-03 10:51:41 UTC
As reported in http://bugzilla.gnome.org/show_bug.cgi?id=559280#c1 this fixes the bug:

$ diff  gedit-app.c.orig gedit-app.c
665c665
<              y + height < viewport_y + sc_height;
---
> 	       y + height <= viewport_y + sc_height;
Comment 7 Paolo Borelli 2009-03-03 14:13:15 UTC

*** This bug has been marked as a duplicate of 559280 ***