LAview: plugin-protocol -> plugin-object.
This commit is contained in:
parent
755a69fd9e
commit
2763b3ef30
|
@ -8,7 +8,7 @@ namespace LAview.Desktop {
|
||||||
public class PreferencesDialog {
|
public class PreferencesDialog {
|
||||||
Dialog dialog;
|
Dialog dialog;
|
||||||
Gtk.ListStore liststore_data;
|
Gtk.ListStore liststore_data;
|
||||||
Gtk.ListStore liststore_protocols;
|
Gtk.ListStore liststore_objects;
|
||||||
FileChooserButton filechooserbutton_lyx;
|
FileChooserButton filechooserbutton_lyx;
|
||||||
FileChooserButton filechooserbutton_pdflatex;
|
FileChooserButton filechooserbutton_pdflatex;
|
||||||
|
|
||||||
|
@ -23,12 +23,12 @@ namespace LAview.Desktop {
|
||||||
//dialog.application = application;
|
//dialog.application = application;
|
||||||
dialog.delete_event.connect ((source) => {return true;});
|
dialog.delete_event.connect ((source) => {return true;});
|
||||||
liststore_data = builder.get_object ("liststore_data") as Gtk.ListStore;
|
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_lyx = builder.get_object ("filechooserbutton_lyx") as FileChooserButton;
|
||||||
filechooserbutton_pdflatex = builder.get_object ("filechooserbutton_pdflatex") as FileChooserButton;
|
filechooserbutton_pdflatex = builder.get_object ("filechooserbutton_pdflatex") as FileChooserButton;
|
||||||
|
|
||||||
fill_liststore_data ();
|
fill_liststore_data ();
|
||||||
fill_liststore_protocols ();
|
fill_liststore_objects ();
|
||||||
|
|
||||||
filechooserbutton_lyx.set_filename (AppCore.core.lyx_path);
|
filechooserbutton_lyx.set_filename (AppCore.core.lyx_path);
|
||||||
filechooserbutton_pdflatex.set_filename (AppCore.core.pdflatex_path);
|
filechooserbutton_pdflatex.set_filename (AppCore.core.pdflatex_path);
|
||||||
|
@ -43,12 +43,12 @@ namespace LAview.Desktop {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void fill_liststore_protocols () {
|
void fill_liststore_objects () {
|
||||||
liststore_protocols.clear();
|
liststore_objects.clear();
|
||||||
TreeIter iter = TreeIter();
|
TreeIter iter = TreeIter();
|
||||||
foreach (var p in AppCore.core.protocol_plugins.entries) {
|
foreach (var p in AppCore.core.object_plugins.entries) {
|
||||||
liststore_protocols.append (out iter);
|
liststore_objects.append (out iter);
|
||||||
liststore_protocols.set (iter, 0, p.value.get_readable_name ());
|
liststore_objects.set (iter, 0, p.value.get_readable_name ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue