[file-roller] show a window only if it's not in batch mode



commit e2dd69f2f311700c3e2ead36afb9b9a8c29e09e3
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Jun 3 17:15:18 2012 +0200

    show a window only if it's not in batch mode

 src/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 1c57fd4..2a194a2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -310,7 +310,8 @@ activate_cb (GApplication *application)
 	     link != NULL;
 	     link = link->next)
 	{
-		gtk_widget_show (GTK_WIDGET (link->data));
+		if (! fr_window_is_batch_mode (FR_WINDOW (link->data)))
+			gtk_widget_show (GTK_WIDGET (link->data));
 	}
 }
 



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