[gnome-chess] Revert "Window should be a bit narrower before entering narrow mode"
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Revert "Window should be a bit narrower before entering narrow mode"
- Date: Sat, 5 Dec 2020 18:29:51 +0000 (UTC)
commit 19f5df8be7fbe6e9103b72ff77b95de1e3d7a754
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Dec 5 11:11:36 2020 -0600
Revert "Window should be a bit narrower before entering narrow mode"
This reverts commit 2345085d9231c7200d331592a58d6481da727e45.
I'm going to try using an info bar instead. It's less obnoxious, and is
useful to avoid ellipsizing the window title even at larger window
sizes.
src/gnome-chess.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 12717b0..d540b7c 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -286,9 +286,9 @@ Copyright © 2015–2016 Sahil Sareen""";
if (is_maximized || is_tiled)
return;
window.get_size (out window_width, out window_height);
- if (window_width <= 450 && layout_mode == LayoutMode.NORMAL)
+ if (window_width <= 500 && layout_mode == LayoutMode.NORMAL)
set_layout_mode (LayoutMode.NARROW);
- else if (window_width > 450 && layout_mode == LayoutMode.NARROW)
+ else if (window_width > 500 && layout_mode == LayoutMode.NARROW)
set_layout_mode (LayoutMode.NORMAL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]