1
0
Fork 0

PreferenceDialog: composed->apply.

This commit is contained in:
Kolan Sh 2018-04-28 18:54:36 +03:00
parent f684d90586
commit bdaa3d451a
1 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ namespace LAview.DataExample {
class PreferencesDialog : GLib.Object { class PreferencesDialog : GLib.Object {
Dialog dialog; 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 { public PreferencesDialog (GLib.Object parent) throws Error {
var builder = new Builder (); var builder = new Builder ();
@ -24,18 +24,18 @@ namespace LAview.DataExample {
} }
public void show_all () { public void show_all () {
composed = false; apply = false;
dialog.run (); dialog.run ();
} }
[CCode (instance_pos = -1)] [CCode (instance_pos = -1)]
public void button_apply_clicked (Button button) { public void button_apply_clicked (Button button) {
composed = true; apply = true;
} }
[CCode (instance_pos = -1)] [CCode (instance_pos = -1)]
public void button_ok_clicked (Button button) { public void button_ok_clicked (Button button) {
composed = true; apply = true;
dialog.hide (); dialog.hide ();
} }