summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2016-07-09 22:51:07 +0200
committerZenWalker <[email protected]>2016-07-10 03:06:14 +0200
commitb7b179b69702b7d6be8c9699e33d344d9b465679 (patch)
treeb13d906a776dde2718b9bf70be9ef7e94b3cc116
parent83e41d48744bac1503b75036f347a740a964804d (diff)
downloadengrampa-b7b179b69702b7d6be8c9699e33d344d9b465679.tar.bz2
engrampa-b7b179b69702b7d6be8c9699e33d344d9b465679.tar.xz
show a window only if it's not in batch mode
file-roller commit: https://git.gnome.org/browse/file-roller/commit/?id=e2dd69f2f311700c3e2ead36afb9b9a8c29e09e3
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index bec746f..5565d32 100644
--- a/src/main.c
+++ b/src/main.c
@@ -244,7 +244,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));
}
}