[gitg] Fix #699135, use the first element in the 'get_windows()' result



commit 06d0983ab8f7ec501b447201e2abf61d8cabd69e
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Sun May 19 05:34:11 2013 +0800

    Fix #699135, use the first element in the 'get_windows()' result
    
    The result of 'get_windows()' is in most recently used order, so the
    first element is the one we need.
    
    Signed-off-by: Ignacio Casal Quinteiro <icq gnome org>

 gitg/gitg-application.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-application.vala b/gitg/gitg-application.vala
index 7b7984e..b1e562b 100644
--- a/gitg/gitg-application.vala
+++ b/gitg/gitg-application.vala
@@ -415,7 +415,7 @@ public class Application : Gtk.Application
                        return;
                }
 
-               windows.last().data.present();
+               windows.first().data.present();
        }
 }
 


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