In progress...
This commit is contained in:
parent
11a4f3ab87
commit
020567dd2b
|
@ -4,6 +4,8 @@ namespace LAview.Core.Plugins {
|
||||||
class ObjectExampleDialog : Object {
|
class ObjectExampleDialog : Object {
|
||||||
Dialog dialog;
|
Dialog dialog;
|
||||||
|
|
||||||
|
public bool composed { set; get; default = false; }
|
||||||
|
|
||||||
public ObjectExampleDialog (Object parent) throws Error {
|
public ObjectExampleDialog (Object 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");
|
||||||
|
@ -27,19 +29,17 @@ namespace LAview.Core.Plugins {
|
||||||
|
|
||||||
[CCode (instance_pos = -1)]
|
[CCode (instance_pos = -1)]
|
||||||
public void button_apply_clicked (Button button) {
|
public void button_apply_clicked (Button button) {
|
||||||
stdout.puts ("button_apply_clicked() called\n");
|
composed = true;
|
||||||
dialog.hide ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[CCode (instance_pos = -1)]
|
[CCode (instance_pos = -1)]
|
||||||
public void button_ok_clicked (Button button) {
|
public void button_ok_clicked (Button button) {
|
||||||
stdout.puts ("button_ok_clicked() called\n");
|
composed = true;
|
||||||
dialog.hide ();
|
dialog.hide ();
|
||||||
}
|
}
|
||||||
|
|
||||||
[CCode (instance_pos = -1)]
|
[CCode (instance_pos = -1)]
|
||||||
public void button_cancel_clicked (Button button) {
|
public void button_cancel_clicked (Button button) {
|
||||||
stdout.puts ("button_cancel_clicked() called\n");
|
|
||||||
dialog.hide ();
|
dialog.hide ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,13 +76,10 @@ namespace LAview.Core.Plugins {
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//stdout.printf ("%s ", a.key);
|
|
||||||
}
|
}
|
||||||
//stdout.putc ('\n');
|
|
||||||
|
|
||||||
return true;
|
return object_dialog.composed;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue