From e8f82fd328697542d2ee0233635b694827a5cc79 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 15 Sep 2024 20:04:52 +0200 Subject: Code cleanup: Remove broken disable CSD code --- plugins/omemo/src/ui/contact_details_dialog.vala | 6 +----- plugins/omemo/src/ui/manage_key_dialog.vala | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins') diff --git a/plugins/omemo/src/ui/contact_details_dialog.vala b/plugins/omemo/src/ui/contact_details_dialog.vala index 61fae286..1fddd759 100644 --- a/plugins/omemo/src/ui/contact_details_dialog.vala +++ b/plugins/omemo/src/ui/contact_details_dialog.vala @@ -55,15 +55,11 @@ public class ContactDetailsDialog : Gtk.Dialog { } public ContactDetailsDialog(Plugin plugin, Account account, Jid jid) { - Object(use_header_bar : Environment.get_variable("GTK_CSD") != "0" ? 1 : 0); + Object(use_header_bar : 1); this.plugin = plugin; this.account = account; this.jid = jid; - if (Environment.get_variable("GTK_CSD") != "0") { -// ((HeaderBar) get_header_bar()).set_subtitle(jid.bare_jid.to_string()); - } - keys_listbox.row_activated.connect(on_key_entry_clicked); inactive_keys_listbox.row_activated.connect(on_key_entry_clicked); auto_accept_switch.state_set.connect(on_auto_accept_toggled); diff --git a/plugins/omemo/src/ui/manage_key_dialog.vala b/plugins/omemo/src/ui/manage_key_dialog.vala index b47b2008..41c2321b 100644 --- a/plugins/omemo/src/ui/manage_key_dialog.vala +++ b/plugins/omemo/src/ui/manage_key_dialog.vala @@ -40,7 +40,7 @@ public class ManageKeyDialog : Gtk.Dialog { } public ManageKeyDialog(Row device, Database db) { - Object(use_header_bar : Environment.get_variable("GTK_CSD") != "0" ? 1 : 0); + Object(use_header_bar : 1); this.device = device; this.db = db; -- cgit v1.2.3-70-g09d2