1
0
Fork 0

In progress...

This commit is contained in:
Kolan Sh 2016-04-07 02:44:43 +03:00
parent 11a4f3ab87
commit 020567dd2b
2 changed files with 5 additions and 8 deletions

View File

@ -4,6 +4,8 @@ namespace LAview.Core.Plugins {
class ObjectExampleDialog : Object {
Dialog dialog;
public bool composed { set; get; default = false; }
public ObjectExampleDialog (Object parent) throws Error {
var builder = new Builder ();
builder.add_from_file (AppDirs.ui_dir + "/laview-plugin-object-example.glade");
@ -27,19 +29,17 @@ namespace LAview.Core.Plugins {
[CCode (instance_pos = -1)]
public void button_apply_clicked (Button button) {
stdout.puts ("button_apply_clicked() called\n");
dialog.hide ();
composed = true;
}
[CCode (instance_pos = -1)]
public void button_ok_clicked (Button button) {
stdout.puts ("button_ok_clicked() called\n");
composed = true;
dialog.hide ();
}
[CCode (instance_pos = -1)]
public void button_cancel_clicked (Button button) {
stdout.puts ("button_cancel_clicked() called\n");
dialog.hide ();
}
}

View File

@ -76,13 +76,10 @@ namespace LAview.Core.Plugins {
default:
break;
}
//stdout.printf ("%s ", a.key);
}
//stdout.putc ('\n');
return true;
return object_dialog.composed;
}
}
}