aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/omemo')
-rw-r--r--plugins/omemo/src/contact_details_dialog.vala6
-rw-r--r--plugins/omemo/src/manage_key_dialog.vala2
2 files changed, 5 insertions, 3 deletions
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;