[gnome-chess] Remove save_file_cb()



commit 8a2f32e54c16a68a8706fe734ae910e129adb421
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Jan 6 16:14:03 2014 -0600

    Remove save_file_cb()

 src/gnome-chess.vala |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 0ed0102..6958b4a 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1876,7 +1876,7 @@ public class Application : Gtk.Application
                                                  save_button_label, Gtk.ResponseType.OK, null);
         add_info_bar_to_dialog (save_dialog, out save_dialog_info_bar, out save_dialog_error_label);
 
-        save_dialog.file_activated.connect (save_file_cb);        
+        save_dialog.file_activated.connect (() => { save_dialog_cb (Gtk.ResponseType.OK); });
         save_dialog.response.connect (save_dialog_cb);
 
         if (saved_filename != null)
@@ -1901,11 +1901,6 @@ public class Application : Gtk.Application
         save_dialog.run ();
     }    
 
-    private void save_file_cb ()
-    {
-        save_dialog_cb (Gtk.ResponseType.OK);
-    }
-
     private void update_pgn_time_remaining ()
     {
         if (game.clock != null)
@@ -1967,7 +1962,7 @@ public class Application : Gtk.Application
                                                  _("_Open"), Gtk.ResponseType.OK, null);
         add_info_bar_to_dialog (open_dialog, out open_dialog_info_bar, out open_dialog_error_label);
 
-        open_dialog.file_activated.connect (open_file_cb);        
+        open_dialog.file_activated.connect (open_file_cb);
         open_dialog.response.connect (open_cb);
 
         /* Filter out non PGN files by default */


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