[balsa] Make Select-Filters dialog respect headerbars conf
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Make Select-Filters dialog respect headerbars conf
- Date: Mon, 20 Feb 2017 00:01:12 +0000 (UTC)
commit 61506d0473a3b818d68b70b9aedbd2a595790ab2
Author: Albrecht Dreß <albrecht dress arcor de>
Date: Sun Feb 19 18:44:39 2017 -0500
Make Select-Filters dialog respect headerbars conf
* src/filter-run-dialog.c (balsa_filter_run_dialog_new): check
the BALSA_DIALOG_HEADERBAR environment variable.
Signed-off-by: Peter Bloomfield <PeterBloomfield bellsouth net>
ChangeLog | 7 +++++++
src/filter-run-dialog.c | 12 +++++++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0164eb2..7445ae3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2017-02-19 Albrecht Dreß
+ Make "Select Filters..." dialogue respect the headerbars config
+
+ * src/filter-run-dialog.c (balsa_filter_run_dialog_new): check
+ the BALSA_DIALOG_HEADERBAR environment variable.
+
+2017-02-19 Albrecht Dreß
+
Fix unsafe permissions for config-private
* libbalsa/libbalsa-conf.c (lbc_init), (lbc_lock), (lbc_sync):
diff --git a/src/filter-run-dialog.c b/src/filter-run-dialog.c
index d2746c2..e9e7c99 100644
--- a/src/filter-run-dialog.c
+++ b/src/filter-run-dialog.c
@@ -179,11 +179,21 @@ balsa_filter_run_dialog_new(LibBalsaMailbox * mbox, GtkWindow * parent)
{
BalsaFilterRunDialog *p;
gchar * dialog_title;
+ gboolean use_headerbar = TRUE;
+#if GTK_CHECK_VERSION(3, 12, 0)
+ const gchar *dialog_env;
+
+ /* header bar configuration */
+ dialog_env = g_getenv("BALSA_DIALOG_HEADERBAR");
+ if ((dialog_env != NULL) && (atoi(dialog_env) == 0)) {
+ use_headerbar = FALSE;
+ }
+#endif
g_return_val_if_fail(mbox, NULL);
p = g_object_new(BALSA_TYPE_FILTER_RUN_DIALOG,
"transient-for", parent,
- "use-header-bar", TRUE,
+ "use-header-bar", use_headerbar,
NULL);
/* We set the dialog title */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]