spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit ba75eed19c12c930f85ff9bdffefb691245ec948
parent 2cea640e33b3ab1d188660acbd199fcbece3b95e
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Sun, 27 Mar 2011 17:13:32 +0800

Save the language preference

Diffstat:
Msrc/spek-preferences-dialog.vala | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/spek-preferences-dialog.vala b/src/spek-preferences-dialog.vala @@ -54,6 +54,8 @@ namespace Spek { } } language_combo.active = active_language; + language_combo.changed.connect ( + () => prefs.language = prefs.languages[language_combo.active,0]); language_label.mnemonic_widget = language_combo; language_box.pack_start (language_combo, false, false, 0); general_subbox.pack_start(language_box, false, false, 0); @@ -73,6 +75,7 @@ namespace Spek { } private void on_response (Dialog dialog, int response_id) { + Preferences.instance.save (); destroy (); } }