spek

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

commit e47aa22e10c82e57c3eee7fff1efefd214a8aafe
parent f01ec84becf5f9d189e6031ac043fa4f54a5c5e8
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Sun,  9 May 2010 21:18:33 +1000

Add *.png filter to the save dialogue

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

diff --git a/src/spek-window.vala b/src/spek-window.vala @@ -93,9 +93,13 @@ namespace Spek { private void on_save_clicked () { var chooser = new FileChooserDialog ( - _("Save File"), this, FileChooserAction.SAVE, + _("Save Spectrogram"), this, FileChooserAction.SAVE, STOCK_CANCEL, ResponseType.CANCEL, STOCK_SAVE, ResponseType.ACCEPT, null); + var filter = new FileFilter (); + filter.add_pattern ("*.png"); + filter.set_name (_("PNG Images")); + chooser.add_filter (filter); if (chooser.run () == ResponseType.ACCEPT) { spectrogram.save (chooser.get_filename ()); }