PreferenceDialog: composed->apply.
This commit is contained in:
parent
f684d90586
commit
bdaa3d451a
|
@ -4,7 +4,7 @@ namespace LAview.DataExample {
|
|||
class PreferencesDialog : GLib.Object {
|
||||
Dialog dialog;
|
||||
|
||||
public bool composed { get; private set; default = false; }
|
||||
public bool apply { get; private set; default = false; }
|
||||
|
||||
public PreferencesDialog (GLib.Object parent) throws Error {
|
||||
var builder = new Builder ();
|
||||
|
@ -24,18 +24,18 @@ namespace LAview.DataExample {
|
|||
}
|
||||
|
||||
public void show_all () {
|
||||
composed = false;
|
||||
apply = false;
|
||||
dialog.run ();
|
||||
}
|
||||
|
||||
[CCode (instance_pos = -1)]
|
||||
public void button_apply_clicked (Button button) {
|
||||
composed = true;
|
||||
apply = true;
|
||||
}
|
||||
|
||||
[CCode (instance_pos = -1)]
|
||||
public void button_ok_clicked (Button button) {
|
||||
composed = true;
|
||||
apply = true;
|
||||
dialog.hide ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue