spek

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

commit 482fb571edbb0c43457f3ac9a6e2408acbbf2f8b
parent e45c3d9a3359628cc29991e8fbb5efce7b867f7f
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Sun, 20 Mar 2011 11:53:18 +0800

Fix prefs dialog close button

Diffstat:
Msrc/spek-preferences-dialog.vala | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/spek-preferences-dialog.vala b/src/spek-preferences-dialog.vala @@ -60,9 +60,13 @@ namespace Spek { vbox.pack_start (alignment, false, false, 0); vbox.show_all (); - // TODO: clicking doesn't close add_button (STOCK_CLOSE, ResponseType.CLOSE); set_default_response (ResponseType.CLOSE); + response.connect (on_response); + } + + private void on_response (Dialog dialog, int response_id) { + destroy (); } } } \ No newline at end of file