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 779082 - window: use monitor information for max forced window size
window: use monitor information for max forced window size
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-02-22 16:57 UTC by Ernestas Kulik
Modified: 2017-02-27 12:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
window: use monitor information for max forced window size (3.28 KB, patch)
2017-02-22 16:57 UTC, Ernestas Kulik
none Details | Review
window: use monitor information for max forced window size (3.38 KB, patch)
2017-02-22 19:55 UTC, Ernestas Kulik
none Details | Review
window: use monitor information for max forced window size (3.55 KB, patch)
2017-02-23 04:43 UTC, Ernestas Kulik
none Details | Review
window: remove max forced window size calculation (2.96 KB, patch)
2017-02-24 09:40 UTC, Ernestas Kulik
committed Details | Review

Description Ernestas Kulik 2017-02-22 16:57:41 UTC
gdk_screen_get_{width,height} () have been deprecated in favor of
per-monitor information. This commit replaces the deprecated API use.
Comment 1 Ernestas Kulik 2017-02-22 16:57:46 UTC
Created attachment 346466 [details] [review]
window: use monitor information for max forced window size
Comment 2 Carlos Soriano 2017-02-22 18:49:47 UTC
Review of attachment 346466 [details] [review]:

LGTM
Comment 3 Ernestas Kulik 2017-02-22 19:55:44 UTC
Created attachment 346489 [details] [review]
window: use monitor information for max forced window size

gdk_screen_get_{width,height} () have been deprecated in favor of
per-monitor information. This commit replaces the deprecated API use.
Comment 4 Ernestas Kulik 2017-02-22 20:00:25 UTC
This one is more correct, perhaps. I fetch the display from the screen I get from the widget, instead of using the default display.
Comment 5 Ernestas Kulik 2017-02-23 04:43:44 UTC
Created attachment 346530 [details] [review]
window: use monitor information for max forced window size

gdk_screen_get_{width,height} () have been deprecated in favor of
per-monitor information. This commit replaces the deprecated API use.
Comment 6 Carlos Soriano 2017-02-23 15:37:35 UTC
Review of attachment 346530 [details] [review]:

As said on IRC, it's fine if we remove this code since we don't support less than the default 800x550 we have right now.
Comment 7 Ernestas Kulik 2017-02-24 09:40:02 UTC
Created attachment 346620 [details] [review]
window: remove max forced window size calculation

Currently, the default size for window is calculated by taking the
minimum value between the screen size and the hardcoded default. As
the smallest recommended screen size for GNOME today is 1024x600 and the
code has been added in 2000, it is likely no longer relevant. This
commit simply makes the code use the hardcoded values within the
recommended range as the default window size.
Comment 8 Carlos Soriano 2017-02-27 12:03:43 UTC
Review of attachment 346620 [details] [review]:

yepi yepi
Comment 9 Carlos Soriano 2017-02-27 12:03:44 UTC
Review of attachment 346620 [details] [review]:

yepi yepi
Comment 10 Ernestas Kulik 2017-02-27 12:22:33 UTC
Attachment 346620 [details] pushed as de521dd - window: remove max forced window size calculation