Hi all, attached is a small patch recognising the header bar configuration in the address book widgets, i.e. disable header bars in them if the environment variable BALSA_DIALOG_HEADERBAR is 0.
Opinions? Cheers, Albrecht.
diff --git a/src/ab-window.c b/src/ab-window.c
index 80ff2b1..01673d4 100644
--- a/src/ab-window.c
+++ b/src/ab-window.c
@@ -115,9 +115,19 @@ balsa_ab_window_new(gboolean composing, GtkWindow* parent)
{
GtkWidget *ret;
BalsaAbWindow *ab;
+ gint use_headerbar = 1;
+#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 = 0;
+ }
+#endif
ret = g_object_new(BALSA_TYPE_AB_WINDOW,
- "use-header-bar", TRUE,
+ "use-header-bar", use_headerbar,
"transient-for", parent,
NULL);
g_return_val_if_fail(ret != NULL, NULL);
pgpGg5Ln9AUJg.pgp
Description: PGP signature
_______________________________________________ balsa-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/balsa-list
