[gnome-sudoku] view: Remove unneeded explicit notifies



commit 5e9ee42481dad645c632e2ec74d0617d9a3cd3ce
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Mar 12 15:19:15 2017 -0500

    view: Remove unneeded explicit notifies
    
    Vala handles this for us, for better or for worse. This is causing the
    signal to be emitted twice.

 src/sudoku-view.vala |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/sudoku-view.vala b/src/sudoku-view.vala
index 98b988b..21d2a41 100644
--- a/src/sudoku-view.vala
+++ b/src/sudoku-view.vala
@@ -175,8 +175,6 @@ private class SudokuCellView : Gtk.DrawingArea
         number_picker = new NumberPicker (ref game.board);
         number_picker.number_picked.connect ((o, number) => {
             value = number;
-            if (number == 0)
-                notify_property ("value");
             this.game.board.disable_all_earmarks (row, col);
 
             popover.hide ();
@@ -308,7 +306,6 @@ private class SudokuCellView : Gtk.DrawingArea
         if (k_no == 0 || k_name == "BackSpace" || k_name == "Delete")
         {
             value = 0;
-            notify_property ("value");
             return true;
         }
 
@@ -428,8 +425,6 @@ private class SudokuCellView : Gtk.DrawingArea
                 else
                     background_color = is_fixed ? fixed_cell_color : free_cell_color;
             }
-
-            notify_property ("value");
         }
     }
 


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