[gnome-chess] trivial: remove open_file_cb()



commit 5a640392a42a02e59415b23348b9a9036ddc3ece
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Jan 7 18:30:44 2014 -0600

    trivial: remove open_file_cb()

 src/gnome-chess.vala |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 28020d0..3814812 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1997,7 +1997,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_cb (Gtk.ResponseType.OK); });
         open_dialog.response.connect (open_cb);
 
         /* Filter out non PGN files by default */
@@ -2015,11 +2015,6 @@ public class Application : Gtk.Application
 
         open_dialog.present ();
     }
-    
-    private void open_file_cb ()
-    {
-        open_cb (Gtk.ResponseType.OK);
-    }
 
     private void open_cb (int response_id)
     {


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