diff options
author | Marvin W <git@larma.de> | 2017-05-04 22:05:48 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-08-17 19:53:34 +0200 |
commit | 5dc460fc1a72a3dfe83453f4c6683be20a1a2a2d (patch) | |
tree | 764b4770607e0a2997a69a5651c81e90ca3d4e99 /main/src/ui/manage_accounts | |
parent | f78818abbee52dc187812428d3eb6542853611a0 (diff) | |
download | dino-5dc460fc1a72a3dfe83453f4c6683be20a1a2a2d.tar.gz dino-5dc460fc1a72a3dfe83453f4c6683be20a1a2a2d.zip |
libdino: remove dependency to GTK+ (all GTK+ code is in main+plugins)
Diffstat (limited to 'main/src/ui/manage_accounts')
-rw-r--r-- | main/src/ui/manage_accounts/dialog.vala | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/main/src/ui/manage_accounts/dialog.vala b/main/src/ui/manage_accounts/dialog.vala index 548cb713..dae2fa73 100644 --- a/main/src/ui/manage_accounts/dialog.vala +++ b/main/src/ui/manage_accounts/dialog.vala @@ -56,16 +56,22 @@ public class Dialog : Gtk.Dialog { int16 default_top_padding = new Gtk.Button().get_style_context().get_padding(Gtk.StateFlags.NORMAL).top + 1; Application app = GLib.Application.get_default() as Application; foreach (var e in app.plugin_registry.account_settings_entries) { - Plugins.AccountSettingsWidget widget = e.get_widget(); + Plugins.AccountSettingsWidget widget = e.get_widget(Plugins.WidgetType.GTK); plugin_widgets.add(widget); - widget.visible = true; Label label = new Label(e.name) { xalign=1, yalign=0, visible=true }; label.get_style_context().add_class("dim-label"); label.set_padding(0, e.label_top_padding == -1 ? default_top_padding : e.label_top_padding); settings_list.attach(label, 0, row_index); - settings_list.attach(widget, 1, row_index, 2); + if (widget is Widget) { + Widget gtkw = (Widget) widget; + plugin_widgets.add(widget); + gtkw.visible = true; + settings_list.attach(gtkw, 1, row_index, 2); + } else { + // TODO + } row_index++; } } |