[four-in-a-row/KaKnife/four-in-a-row-vala: 35/65] moved some global vars to class
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row/KaKnife/four-in-a-row-vala: 35/65] moved some global vars to class
- Date: Sun, 16 Dec 2018 03:22:55 +0000 (UTC)
commit 252b635fd3ca67751776762f601c20816468873f
Author: Jacob Humphrey <jacob ryan humphrey gmail com>
Date: Fri Dec 14 20:37:35 2018 -0600
moved some global vars to class
src/gfx.vala | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/src/gfx.vala b/src/gfx.vala
index 37e4f53..4f92a9e 100644
--- a/src/gfx.vala
+++ b/src/gfx.vala
@@ -19,12 +19,10 @@
* along with GNOME Four-in-a-row. If not, see <http://www.gnu.org/licenses/>.
*/
-
-int boardsize = 0;
-int tilesize = 0;
-int offset[6];
-
class GameBoardView : Gtk.DrawingArea {
+ int boardsize = 0;
+ int tilesize = 0;
+ int offset[6];
/* unscaled pixbufs */
Gdk.Pixbuf pb_tileset_raw;
Gdk.Pixbuf pb_bground_raw;
@@ -50,10 +48,6 @@ class GameBoardView : Gtk.DrawingArea {
events = Gdk.EventMask.EXPOSURE_MASK |
Gdk.EventMask.BUTTON_PRESS_MASK |
Gdk.EventMask.BUTTON_RELEASE_MASK;
- //configure_event.connect(resize);
- //draw.connect(expose);
- //button_press_event.connect(button_press_event);
- //key_press_event.connect(this.on_key_press);
}
public int get_column(int xpos) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]