[gnome-tetravex] Use a const value.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex] Use a const value.
- Date: Mon, 3 Aug 2020 15:32:12 +0000 (UTC)
commit d8e12f74eed1335505efcd94507f0a7642563328
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Aug 3 17:27:08 2020 +0200
Use a const value.
src/gnome-tetravex.vala | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index 985b672..fbbe097 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -542,6 +542,11 @@ private class Tetravex : Gtk.Application
window_height = (!) _window_height;
}
+ private const Gdk.WindowState tiled_state = Gdk.WindowState.TILED
+ | Gdk.WindowState.TOP_TILED
+ | Gdk.WindowState.BOTTOM_TILED
+ | Gdk.WindowState.LEFT_TILED
+ | Gdk.WindowState.RIGHT_TILED;
private bool window_state_event_cb (Gdk.EventWindowState event)
{
if ((event.changed_mask & Gdk.WindowState.MAXIMIZED) != 0)
@@ -552,11 +557,6 @@ private class Tetravex : Gtk.Application
window_is_fullscreen = (event.new_window_state & Gdk.WindowState.FULLSCREEN) != 0;
/* tiled: not saved, but should not change saved window size */
- Gdk.WindowState tiled_state = Gdk.WindowState.TILED
- | Gdk.WindowState.TOP_TILED
- | Gdk.WindowState.BOTTOM_TILED
- | Gdk.WindowState.LEFT_TILED
- | Gdk.WindowState.RIGHT_TILED;
if ((event.changed_mask & tiled_state) != 0)
window_is_tiled = (event.new_window_state & tiled_state) != 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]