[four-in-a-row] Remove unused things.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row] Remove unused things.
- Date: Sat, 21 Dec 2019 16:36:56 +0000 (UTC)
commit b6aaef011535feb21a72bf5e927934f290a63b72
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Dec 21 10:40:55 2019 +0100
Remove unused things.
src/game-board-view.vala | 24 +++++++++---------------
1 file changed, 9 insertions(+), 15 deletions(-)
---
diff --git a/src/game-board-view.vala b/src/game-board-view.vala
index ff4c543..d80263f 100644
--- a/src/game-board-view.vala
+++ b/src/game-board-view.vala
@@ -31,9 +31,6 @@ private class GameBoardView : Gtk.DrawingArea {
private Board game_board;
internal GameBoardView(Board game_board) {
- halign = Gtk.Align.FILL;
- valign = Gtk.Align.FILL;
-
events = Gdk.EventMask.EXPOSURE_MASK
| Gdk.EventMask.BUTTON_PRESS_MASK
| Gdk.EventMask.BUTTON_RELEASE_MASK;
@@ -198,18 +195,15 @@ private class GameBoardView : Gtk.DrawingArea {
Gdk.Pixbuf? pb_bground_tmp = null;
/* Try the theme pixmaps, fallback to the default and then give up */
- while (true) {
- fname = "/org/gnome/Four-in-a-row/images/" + theme[Prefs.instance.theme_id].fname_tileset;
- try {
- pb_tileset_tmp = new Gdk.Pixbuf.from_resource(fname);
- } catch (Error e) {
- if (Prefs.instance.theme_id == 0)
- load_error(fname);
- else
- Prefs.instance.theme_id = 0;
- return false;
- }
- break;
+ fname = "/org/gnome/Four-in-a-row/images/" + theme[Prefs.instance.theme_id].fname_tileset;
+ try {
+ pb_tileset_tmp = new Gdk.Pixbuf.from_resource(fname);
+ } catch (Error e) {
+ if (Prefs.instance.theme_id == 0)
+ load_error(fname);
+ else
+ Prefs.instance.theme_id = 0;
+ return false;
}
pb_tileset_raw = pb_tileset_tmp;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]