[gnome-2048/arnaudb/wip/gtk4: 31/34] Comment some other things.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048/arnaudb/wip/gtk4: 31/34] Comment some other things.
- Date: Mon, 13 Jul 2020 15:36:39 +0000 (UTC)
commit 98dce4788b296f3539e61d31b073735ac25aa62e
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Jul 13 17:04:44 2020 +0200
Comment some other things.
src/game-window.vala | 28 ++++++++++++++--------------
src/game.vala | 20 ++++++++++----------
2 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/src/game-window.vala b/src/game-window.vala
index f69f504..ef7d4db 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -155,7 +155,7 @@ private class GameWindow : ApplicationWindow
private void _init_window_state ()
{
- size_allocate.connect (size_allocate_cb);
+// size_allocate.connect (size_allocate_cb);
map.connect (init_state_watcher);
set_size_request (WINDOW_MINIMUM_SIZE_HEIGHT, WINDOW_MINIMUM_SIZE_WIDTH);
}
@@ -178,19 +178,19 @@ private class GameWindow : ApplicationWindow
_settings.apply ();
}
- private static void size_allocate_cb (Widget widget, int width, int height, int baseline)
- {
- GameWindow _this = (GameWindow) widget;
- if (_this._window_is_maximized || _this._window_is_tiled || _this._window_is_fullscreen)
- return;
- int? window_width = null;
- int? window_height = null;
- _this.get_size (out window_width, out window_height);
- if (window_width == null || window_height == null)
- return;
- _this._window_width = (!) window_width;
- _this._window_height = (!) window_height;
- }
+// private static void size_allocate_cb (Widget widget, int width, int height, int baseline)
+// {
+// GameWindow _this = (GameWindow) widget;
+// if (_this._window_is_maximized || _this._window_is_tiled || _this._window_is_fullscreen)
+// return;
+// int? window_width = null;
+// int? window_height = null;
+// _this.get_size (out window_width, out window_height);
+// if (window_width == null || window_height == null)
+// return;
+// _this._window_width = (!) window_width;
+// _this._window_height = (!) window_height;
+// }
private void init_state_watcher ()
{
diff --git a/src/game.vala b/src/game.vala
index c9886aa..16de9e6 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -118,7 +118,7 @@ private class Game : Gtk.Widget
uint8 rows = (uint8) settings.get_int ("rows"); // and rows from 1 to 9
_init_grid (rows, cols, out _grid, ref settings);
- size_allocate.connect (_on_size_allocate);
+// size_allocate.connect (_on_size_allocate);
}
private static void _init_grid (uint8 rows, uint8 cols, out Grid grid, ref GLib.Settings settings)
@@ -131,16 +131,16 @@ private class Game : Gtk.Widget
* * view
\*/
- private void _on_size_allocate (Gtk.Widget widget, int width, int height, int baseline)
- {
- width = _width;
- height = _height;
+// private void _on_size_allocate (Gtk.Widget widget, int width, int height, int baseline)
+// {
+// width = _width;
+// height = _height;
- if (_background_init_done)
- _resize_view ();
- else
- _init_background ();
- }
+// if (_background_init_done)
+// _resize_view ();
+// else
+// _init_background ();
+// }
/*\
* * others
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]