In progress...

This commit is contained in:
Kolan Sh 2016-04-04 01:06:54 +03:00
parent d960581299
commit 5bf19ff05a
2 changed files with 18 additions and 11 deletions

View File

@ -2,20 +2,20 @@ namespace LAview.Core.Plugins {
using Gtk, LAview; using Gtk, LAview;
class ObjectExampleDialog1 { class ObjectExampleDialog1 {
Dialog dialog; //Dialog dialog;
ObjectExampleDialog1 (Window parent) throws Error { 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);
//
dialog = builder.get_object ("object_example_dialog") as Dialog; // dialog = builder.get_object ("object_example_dialog") as Dialog;
if (parent != null) dialog.transient_for = parent; // if (parent != null) dialog.transient_for = parent;
dialog.modal = true; // dialog.modal = true;
} }
public void show_all () { // public void show_all () {
dialog.show_all (); // dialog.show_all ();
} // }
} }
} }

View File

@ -62,7 +62,14 @@ namespace LAview.Core.Plugins {
} }
} }
public class MyNameIsVasya {
public MyNameIsVasya () {
stdout.puts ("My name is Vasya\n");
}
} }
}
[ModuleInit] [ModuleInit]
Type plugin_init (GLib.TypeModule type_module) { Type plugin_init (GLib.TypeModule type_module) {