[goobox] application: reuse the current window if available



commit 0227065be8c94f72a5714636244f7e64e282bf3f
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Dec 26 14:52:32 2013 +0100

    application: reuse the current window if available

 src/goo-application.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/goo-application.c b/src/goo-application.c
index 77582b0..59e2042 100644
--- a/src/goo-application.c
+++ b/src/goo-application.c
@@ -346,12 +346,9 @@ goo_application_command_line (GApplication            *application,
 
        /* execute the command line */
 
-       /*window = _gtk_application_get_current_window (GTK_APPLICATION (application));
+       window = _gtk_application_get_current_window (GTK_APPLICATION (application));
        if (window == NULL)
                window = goo_window_new (NULL);
-       gtk_window_present (GTK_WINDOW (window));*/
-
-       window = goo_window_new (NULL);
        gtk_window_present (GTK_WINDOW (window));
 
        if (arg_auto_play) {


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