From 5dc460fc1a72a3dfe83453f4c6683be20a1a2a2d Mon Sep 17 00:00:00 2001 From: Marvin W Date: Thu, 4 May 2017 22:05:48 +0200 Subject: libdino: remove dependency to GTK+ (all GTK+ code is in main+plugins) --- plugins/omemo/src/account_settings_entry.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/omemo') diff --git a/plugins/omemo/src/account_settings_entry.vala b/plugins/omemo/src/account_settings_entry.vala index c6871f6e..3866febe 100644 --- a/plugins/omemo/src/account_settings_entry.vala +++ b/plugins/omemo/src/account_settings_entry.vala @@ -15,8 +15,11 @@ public class AccountSettingsEntry : Plugins.AccountSettingsEntry { return "OMEMO"; }} - public override Plugins.AccountSettingsWidget get_widget() { - return new AccountSettingWidget(plugin); + public override Plugins.AccountSettingsWidget? get_widget(WidgetType type) { + if (type == WidgetType.GTK) { + return new AccountSettingWidget(plugin); + } + return null; } } -- cgit v1.2.3-70-g09d2