In progress...
This commit is contained in:
parent
fc7673b63d
commit
6c9c091a60
|
@ -1,10 +1,10 @@
|
||||||
namespace LAview.Core.Plugins {
|
namespace LAview.Core.Plugins {
|
||||||
using Gtk, LAview;
|
using Gtk, LAview;
|
||||||
|
|
||||||
public class ObjectExampleDialog {
|
public class ObjectExampleDialog1 {
|
||||||
Dialog dialog;
|
Dialog dialog;
|
||||||
|
|
||||||
public ObjectExampleDialog (Window parent) throws Error {
|
public ObjectExampleDialog1 (Window parent) throws Error {
|
||||||
var builder = new Builder ();
|
var builder = new Builder ();
|
||||||
builder.add_from_file (AppDirs.ui_dir + "/laview-plugin-object-example.glade");
|
builder.add_from_file (AppDirs.ui_dir + "/laview-plugin-object-example.glade");
|
||||||
builder.connect_signals (this);
|
builder.connect_signals (this);
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace LAview.Core.Plugins {
|
||||||
*/
|
*/
|
||||||
public class PluginObjectExample : PluginObject {
|
public class PluginObjectExample : PluginObject {
|
||||||
|
|
||||||
ObjectExampleDialog object_dialog = null;
|
ObjectExampleDialog1 object_dialog = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new ``PluginObjectExample``.
|
* Constructs a new ``PluginObjectExample``.
|
||||||
|
@ -47,9 +47,9 @@ namespace LAview.Core.Plugins {
|
||||||
* Compose the object.
|
* Compose the object.
|
||||||
*/
|
*/
|
||||||
public override bool compose (Gee.HashMap<string, AnswerValue> answers) throws Error {
|
public override bool compose (Gee.HashMap<string, AnswerValue> answers) throws Error {
|
||||||
if (object_dialog == null) object_dialog = new ObjectExampleDialog (null);
|
//if (object_dialog == null) object_dialog = new ObjectExampleDialog1 (null);
|
||||||
|
|
||||||
object_dialog.show_all ();
|
//object_dialog.show_all ();
|
||||||
|
|
||||||
PluginDataExample data_obj_ex = (host as IHostCore).get_data_object ("DataExample") as PluginDataExample;
|
PluginDataExample data_obj_ex = (host as IHostCore).get_data_object ("DataExample") as PluginDataExample;
|
||||||
stdout.puts ("Compose() called\n");
|
stdout.puts ("Compose() called\n");
|
||||||
|
|
Loading…
Reference in New Issue