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 740350 - Do not recreate the main window if present.
Do not recreate the main window if present.
Status: RESOLVED DUPLICATE of bug 711850
Product: gnome-weather
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Weather Maintainer(s)
GNOME Weather Maintainer(s)
Depends on:
Blocks: 728117
 
 
Reported: 2014-11-19 08:56 UTC by Jonas Danielsson
Modified: 2014-11-20 02:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
main: Do not recreate window when present (2.38 KB, patch)
2014-11-19 08:56 UTC, Jonas Danielsson
none Details | Review

Description Jonas Danielsson 2014-11-19 08:56:27 UTC
When activating the application we should not recreate the main window if it is already there, instead we should present it.

I ran into this while trying to activate the action show-location from Maps.
Comment 1 Jonas Danielsson 2014-11-19 08:56:50 UTC
Created attachment 290966 [details] [review]
main: Do not recreate window when present

On activate and on actions we should not recreate the main window
instead we should present it if it is already created.
Comment 2 Giovanni Campagna 2014-11-20 02:51:31 UTC
The reason gnome-weather creates a new window is intentional: we're not a single window app, in the current design.

Part of it was that gnome-shell would be showing a "New window" menu item anyway (which was fixed), part of it was a deliberate design decision on my part. But let's continue this conversation on the other bug.

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