[four-in-a-row] Move code.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row] Move code.
- Date: Sat, 21 Dec 2019 16:37:16 +0000 (UTC)
commit 70d80af64be4da55b89b9674e0f00bef8e1d6db6
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Dec 21 11:41:52 2019 +0100
Move code.
src/game-board-view.vala | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/src/game-board-view.vala b/src/game-board-view.vala
index 9e669af..3fa756f 100644
--- a/src/game-board-view.vala
+++ b/src/game-board-view.vala
@@ -65,12 +65,9 @@ private class GameBoardView : Gtk.DrawingArea {
return true;
}
- private inline bool change_theme() {
- load_pixmaps();
-
- refresh_pixmaps();
- return true;
- }
+ /*\
+ * * drawing
+ \*/
protected override bool draw(Cairo.Context cr) {
int r, c;
@@ -169,6 +166,12 @@ private class GameBoardView : Gtk.DrawingArea {
* * pixmaps
\*/
+ private inline void change_theme ()
+ {
+ load_pixmaps ();
+ refresh_pixmaps ();
+ }
+
private void refresh_pixmaps ()
{
Gdk.Pixbuf? tmp_pixbuf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]