[gnome-nibbles/arnaudb/data-reordering: 2/3] Some pix cleaning.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/data-reordering: 2/3] Some pix cleaning.
- Date: Thu, 9 Jul 2020 00:15:06 +0000 (UTC)
commit 9eed09c8e077e0443d352ffa0856b1deecbcc5db
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Jul 9 01:05:49 2020 +0200
Some pix cleaning.
data/pix/arrow-key.svg | 36 ------------------------------------
data/pix/meson.build | 5 ++---
src/controls.vala | 8 +++-----
3 files changed, 5 insertions(+), 44 deletions(-)
---
diff --git a/data/pix/meson.build b/data/pix/meson.build
index e70792e..e9ef8fc 100644
--- a/data/pix/meson.build
+++ b/data/pix/meson.build
@@ -2,8 +2,8 @@ bonus_pix = [
'bonus1.svg',
'bonus2.svg',
'bonus3.svg',
- 'bonus4.svg',
- 'bonus5.svg',
+# 'bonus4.svg',
+# 'bonus5.svg',
'diamond.svg',
'life.svg',
'questionmark.svg',
@@ -35,7 +35,6 @@ scoreboard_pix = [
controls_pix = [
'arrow.svg',
- 'arrow-key.svg',
]
install_data(bonus_pix + small_pix + scoreboard_pix + controls_pix,
diff --git a/src/controls.vala b/src/controls.vala
index b1d484e..4f07358 100644
--- a/src/controls.vala
+++ b/src/controls.vala
@@ -26,12 +26,10 @@ private class Controls : Box
private Gee.LinkedList<ControlsGrid> grids = new Gee.LinkedList<ControlsGrid> ();
private Gdk.Pixbuf arrow_pixbuf;
- private Gdk.Pixbuf arrow_key_pixbuf;
internal void load_pixmaps (int tile_size)
{
- arrow_pixbuf = NibblesView.load_pixmap_file ("arrow.svg", 5 * tile_size, 5 * tile_size);
- arrow_key_pixbuf = NibblesView.load_pixmap_file ("arrow-key.svg", 5 * tile_size, 5 * tile_size);
+ arrow_pixbuf = NibblesView.load_pixmap_file ("arrow.svg", 5 * tile_size, 5 * tile_size);
}
internal void prepare (Gee.LinkedList<Worm> worms, Gee.HashMap<Worm, WormProperties> worm_props)
@@ -47,7 +45,7 @@ private class Controls : Box
{
WormProperties worm_prop = worm_props.@get (worm);
- var grid = new ControlsGrid (worm.id, worm_prop, arrow_pixbuf, arrow_key_pixbuf);
+ var grid = new ControlsGrid (worm.id, worm_prop, arrow_pixbuf);
grids_box.add (grid);
grids.add (grid);
@@ -120,7 +118,7 @@ private class ControlsGrid : Button
private ulong right_handler;
private ulong color_handler;
- internal ControlsGrid (int worm_id, WormProperties worm_props, Gdk.Pixbuf arrow, Gdk.Pixbuf arrow_key)
+ internal ControlsGrid (int worm_id, WormProperties worm_props, Gdk.Pixbuf arrow)
{
this.worm_props = worm_props;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]