[gnome-tetravex] score dialog: get the correct values from the size_model



commit f38d473c2bee053289f8cfb92935ea323619dbb6
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Wed Oct 16 01:11:40 2013 +0200

    score dialog: get the correct values from the size_model
    
    Gets rid of a lot of warnings. Also only reads the 'size' as that
    is the only value we need.

 src/score-dialog.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index bd9f7c8..9481928 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -134,8 +134,8 @@ public class ScoreDialog : Gtk.Dialog
         {
             do
             {
-                int size, height, n_mines;
-                size_model.get (iter, 1, out size, 2, out height, 3, out n_mines);
+                int size;
+                size_model.get (iter, 1, out size, -1);
                 if (size == entry.size)
                 {
                     have_size_entry = true;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]