[iagno] Remove compilation warnings.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Remove compilation warnings.
- Date: Mon, 16 Feb 2015 20:54:45 +0000 (UTC)
commit f0559df7cfcaad12f350f6e1fe60e4e6faa9a7a4
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Feb 16 21:54:37 2015 +0100
Remove compilation warnings.
src/game-view.vala | 4 ++--
src/iagno.vala | 3 ---
src/themes-dialog.vala | 5 ++++-
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/game-view.vala b/src/game-view.vala
index 34a359e..b76a602 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -77,7 +77,7 @@ public class GameView : Gtk.DrawingArea
/* Animation timer */
private uint animate_timeout = 0;
- private double cursor = 0;
+ // private double cursor = 0;
private int current_player_number = 0;
public signal void move (int x, int y);
@@ -134,7 +134,7 @@ public class GameView : Gtk.DrawingArea
load_theme (key);
_theme = value;
- // redraw all
+ /* redraw all */
tiles_pattern = null;
// scoreboard_tiles_pattern = null;
scoreboard.queue_draw ();
diff --git a/src/iagno.vala b/src/iagno.vala
index 6e29b33..5bda7eb 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -432,9 +432,6 @@ public class Iagno : Gtk.Application
/* Translators: this is a 2 digit representation of the current score. */
dark_score_label.set_text (_("%.2d").printf (game.n_dark_tiles));
light_score_label.set_text (_("%.2d").printf (game.n_light_tiles));
-
- // mark_icon_dark.visible = (game.current_color == Player.DARK);
- // mark_icon_light.visible = (game.current_color == Player.LIGHT);
}
private void undo_move_cb ()
diff --git a/src/themes-dialog.vala b/src/themes-dialog.vala
index fc9e185..990673b 100644
--- a/src/themes-dialog.vala
+++ b/src/themes-dialog.vala
@@ -49,13 +49,16 @@ public class ThemesDialog : Dialog
string path = Path.build_filename (DATA_DIRECTORY, "themes", "key", filename);
var key = new GLib.KeyFile ();
+ string name;
try
{
key.load_from_file (path, GLib.KeyFileFlags.NONE);
+ name = key.get_locale_string ("Theme", "Name");
}
catch (GLib.KeyFileError e)
{
warning ("oops: %s", e.message);
+ continue;
}
var row = new ListBoxRow ();
@@ -67,7 +70,7 @@ public class ThemesDialog : Dialog
img.visible = true;
img.width_request = 50;
img.icon_name = "object-select-symbolic";
- var lbl = new Label (key.get_locale_string ("Theme", "Name"));
+ var lbl = new Label (name);
lbl.visible = true;
lbl.xalign = 0;
var data = new Label (filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]