LAview: plugin-protocol -> plugin-object.

This commit is contained in:
Kolan Sh 2016-02-14 14:54:32 +03:00
parent 755a69fd9e
commit 2763b3ef30
1 changed files with 8 additions and 8 deletions

View File

@ -8,7 +8,7 @@ namespace LAview.Desktop {
public class PreferencesDialog {
Dialog dialog;
Gtk.ListStore liststore_data;
Gtk.ListStore liststore_protocols;
Gtk.ListStore liststore_objects;
FileChooserButton filechooserbutton_lyx;
FileChooserButton filechooserbutton_pdflatex;
@ -23,12 +23,12 @@ namespace LAview.Desktop {
//dialog.application = application;
dialog.delete_event.connect ((source) => {return true;});
liststore_data = builder.get_object ("liststore_data") as Gtk.ListStore;
liststore_protocols = builder.get_object ("liststore_protocols") as Gtk.ListStore;
liststore_objects = builder.get_object ("liststore_objects") as Gtk.ListStore;
filechooserbutton_lyx = builder.get_object ("filechooserbutton_lyx") as FileChooserButton;
filechooserbutton_pdflatex = builder.get_object ("filechooserbutton_pdflatex") as FileChooserButton;
fill_liststore_data ();
fill_liststore_protocols ();
fill_liststore_objects ();
filechooserbutton_lyx.set_filename (AppCore.core.lyx_path);
filechooserbutton_pdflatex.set_filename (AppCore.core.pdflatex_path);
@ -43,12 +43,12 @@ namespace LAview.Desktop {
}
}
void fill_liststore_protocols () {
liststore_protocols.clear();
void fill_liststore_objects () {
liststore_objects.clear();
TreeIter iter = TreeIter();
foreach (var p in AppCore.core.protocol_plugins.entries) {
liststore_protocols.append (out iter);
liststore_protocols.set (iter, 0, p.value.get_readable_name ());
foreach (var p in AppCore.core.object_plugins.entries) {
liststore_objects.append (out iter);
liststore_objects.set (iter, 0, p.value.get_readable_name ());
}
}