[gnome-chess/chess-telepathy-networking-support-664946-rebase: 46/64] Associate launcher to gnome-chess-application



commit e424cf8d0815296e042ef230048e5f7660cbbb69
Author: Chandni Verma <chandniverma2112 gmail com>
Date:   Wed Sep 12 19:54:16 2012 +0530

    Associate launcher to gnome-chess-application

 src/gnome-chess-application.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-chess-application.vala b/src/gnome-chess-application.vala
index d8840fc..11a528e 100644
--- a/src/gnome-chess-application.vala
+++ b/src/gnome-chess-application.vala
@@ -95,6 +95,7 @@ public class Application : Gtk.Application
         if (game_file == null)
         {
             launcher = create_launcher (engines_file, ai_profiles, history);
+            add_window (launcher);
 
             var unfinished = history.get_unfinished ();
             if (unfinished != null)
@@ -1054,7 +1055,10 @@ public class Application : Gtk.Application
         /* Hide game-window and show launcher */
         window.hide ();
         if (launcher == null)
+        {
           launcher = create_launcher (engines_file, ai_profiles, history);
+          add_window (launcher);
+        }
         launcher.present ();
         launcher.show_opponent_selector ();
     }



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