[recipes] Try to make import work better



commit fe5ceb9edf9a28b125a61abcdcea1770bdc63555
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 7 13:06:08 2017 -0500

    Try to make import work better
    
    Make sure to show the window first, before doing the import.

 src/gr-app.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-app.c b/src/gr-app.c
index 2106e15..79cd0bb 100644
--- a/src/gr-app.c
+++ b/src/gr-app.c
@@ -866,8 +866,10 @@ gr_app_open (GApplication  *app,
                 g_warning ("Can only open one file at a time.");
 
         win = gtk_application_get_active_window (GTK_APPLICATION (app));
-        if (!win)
+        if (!win) {
                 win = GTK_WINDOW (gr_window_new (GR_APP (app)));
+                gtk_window_present (win);
+        }
 
         gr_window_load_recipe (GR_WINDOW (win), files[0]);
 


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