aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-02-20 23:08:30 +0100
committerfiaxh <git@lightrise.org>2019-03-14 17:39:31 +0100
commit161e4c19862be0ea6572f7701d37acc1c16b8147 (patch)
tree99c79a52371dd7a1424617045ea849b8977b039f /plugins/omemo
parentcc7b0aa7bd5b6599159f654fdd8a2fd111e16a3e (diff)
downloaddino-161e4c19862be0ea6572f7701d37acc1c16b8147.tar.gz
dino-161e4c19862be0ea6572f7701d37acc1c16b8147.zip
Add non-CSD alternative for more windows
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;