[gitg] Use present as gtk app already takes care of setting the timing



commit f2993b10be9faf22c90ef7b071bb30b7025e676c
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Feb 20 20:53:53 2013 +0100

    Use present as gtk app already takes care of setting the timing

 gitg/gitg-application.vala |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/gitg/gitg-application.vala b/gitg/gitg-application.vala
index 3044103..bab057e 100644
--- a/gitg/gitg-application.vala
+++ b/gitg/gitg-application.vala
@@ -367,7 +367,7 @@ public class Application : Gtk.Application
                        if (window != null)
                        {
                                // Present the window with this repository open
-                               window.present_with_time(Gdk.CURRENT_TIME);
+                               window.present();
                                continue;
                        }
 
@@ -393,12 +393,6 @@ public class Application : Gtk.Application
                        new_window(repo, hint);
                        opened = true;
                }
-
-               if (!opened)
-               {
-                       // still open a window
-                       present_window();
-               }
        }
 
        private void new_window(Repository? repo = null, string? hint = null)
@@ -421,7 +415,7 @@ public class Application : Gtk.Application
                        return;
                }
 
-               windows.data.present_with_time(Gdk.CURRENT_TIME);
+               windows.data.present();
        }
 }
 


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