spek

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

commit 56be91c474efdf8a80c5c3e6743a233b186e8551
parent 908b3e6f2fae461b03f493ee95d5e96aa1ae17c1
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Thu, 17 Mar 2011 16:55:20 +0800

Add a Preferences toolbar button

Diffstat:
Msrc/spek-window.vala | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/spek-window.vala b/src/spek-window.vala @@ -61,6 +61,15 @@ namespace Spek { toolbar.insert (new SeparatorToolItem (), -1); + var prefs = new ToolButton.from_stock (STOCK_PREFERENCES); + prefs.is_important = true; + prefs.add_accelerator ( + "clicked", group, 'E', ModifierType.CONTROL_MASK, AccelFlags.VISIBLE); + prefs.clicked.connect (on_prefs_clicked); + toolbar.insert (prefs, -1); + + toolbar.insert (new SeparatorToolItem (), -1); + var quit = new ToolButton.from_stock (STOCK_QUIT); quit.is_important = true; quit.add_accelerator ( @@ -182,6 +191,9 @@ namespace Spek { chooser.destroy (); } + private void on_prefs_clicked () { + } + private void on_about_clicked () { string[] authors = { "Primary Development:",