From 161e4c19862be0ea6572f7701d37acc1c16b8147 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 20 Feb 2019 23:08:30 +0100 Subject: Add non-CSD alternative for more windows --- plugins/omemo/src/contact_details_dialog.vala | 6 ++++-- plugins/omemo/src/manage_key_dialog.vala | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/omemo') diff --git a/plugins/omemo/src/contact_details_dialog.vala b/plugins/omemo/src/contact_details_dialog.vala index 62d755d9..6899acf6 100644 --- a/plugins/omemo/src/contact_details_dialog.vala +++ b/plugins/omemo/src/contact_details_dialog.vala @@ -31,12 +31,14 @@ public class ContactDetailsDialog : Gtk.Dialog { [GtkChild] private Popover qrcode_popover; public ContactDetailsDialog(Plugin plugin, Account account, Jid jid) { - Object(use_header_bar : 1); + Object(use_header_bar : Environment.get_variable("GTK_CSD") != "0" ? 1 : 0); this.plugin = plugin; this.account = account; this.jid = jid; - (get_header_bar() as HeaderBar).set_subtitle(jid.bare_jid.to_string()); + if (Environment.get_variable("GTK_CSD") != "0") { + (get_header_bar() as HeaderBar).set_subtitle(jid.bare_jid.to_string()); + } int identity_id = plugin.db.identity.get_id(account.id); if (identity_id < 0) return; diff --git a/plugins/omemo/src/manage_key_dialog.vala b/plugins/omemo/src/manage_key_dialog.vala index 1d109a28..87d43de8 100644 --- a/plugins/omemo/src/manage_key_dialog.vala +++ b/plugins/omemo/src/manage_key_dialog.vala @@ -29,7 +29,7 @@ public class ManageKeyDialog : Gtk.Dialog { private int current_response; public ManageKeyDialog(Row device, Database db) { - Object(use_header_bar : 1); + Object(use_header_bar : Environment.get_variable("GTK_CSD") != "0" ? 1 : 0); this.device = device; this.db = db; -- cgit v1.2.3-70-g09d2