LAview Core data/protocol plugins as properties.

This commit is contained in:
Kolan Sh 2016-01-31 00:22:34 +03:00
parent d6a149e040
commit 41b1dcac0e
1 changed files with 2 additions and 6 deletions

View File

@ -35,22 +35,18 @@ namespace LAview.Desktop {
} }
void fill_liststore_data () { void fill_liststore_data () {
var data_plugins = AppCore.core.get_data_plugins ();
liststore_data.clear(); liststore_data.clear();
TreeIter iter = TreeIter(); TreeIter iter = TreeIter();
foreach (var p in data_plugins.entries) { foreach (var p in AppCore.core.data_plugins.entries) {
liststore_data.append (out iter); liststore_data.append (out iter);
liststore_data.set (iter, 0, p.value.get_readable_name ()); liststore_data.set (iter, 0, p.value.get_readable_name ());
} }
} }
void fill_liststore_protocols () { void fill_liststore_protocols () {
var protocol_plugins = AppCore.core.get_protocol_plugins ();
liststore_protocols.clear(); liststore_protocols.clear();
TreeIter iter = TreeIter(); TreeIter iter = TreeIter();
foreach (var p in protocol_plugins.entries) { foreach (var p in AppCore.core.protocol_plugins.entries) {
liststore_protocols.append (out iter); liststore_protocols.append (out iter);
liststore_protocols.set (iter, 0, p.value.get_readable_name ()); liststore_protocols.set (iter, 0, p.value.get_readable_name ());
} }