mirror of
https://github.com/alexkay/spek.git
synced 2025-06-07 19:03:02 +03:00
Add the about dialogue
This commit is contained in:
parent
79e048637f
commit
f7f3abc2fd
@ -33,6 +33,18 @@ namespace Spek {
|
|||||||
quit.clicked.connect (s => this.destroy());
|
quit.clicked.connect (s => this.destroy());
|
||||||
toolbar.insert (quit, -1);
|
toolbar.insert (quit, -1);
|
||||||
|
|
||||||
|
// This separator forces the rest of the items to the end of the toolbar.
|
||||||
|
var sep = new SeparatorToolItem ();
|
||||||
|
sep.set_expand (true);
|
||||||
|
sep.draw = false;
|
||||||
|
toolbar.insert (sep, -1);
|
||||||
|
|
||||||
|
var about = new ToolButton.from_stock (STOCK_ABOUT);
|
||||||
|
about.is_important = true;
|
||||||
|
about.add_accelerator ("clicked", group, keyval_from_name ("F1"), 0, AccelFlags.VISIBLE);
|
||||||
|
about.clicked.connect (on_about_clicked);
|
||||||
|
toolbar.insert (about, -1);
|
||||||
|
|
||||||
this.spectrogram = new Spectrogram ();
|
this.spectrogram = new Spectrogram ();
|
||||||
|
|
||||||
var vbox = new VBox (false, 0);
|
var vbox = new VBox (false, 0);
|
||||||
@ -52,5 +64,28 @@ namespace Spek {
|
|||||||
}
|
}
|
||||||
chooser.destroy ();
|
chooser.destroy ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void on_about_clicked () {
|
||||||
|
string[] authors = {
|
||||||
|
"Alexander Kojevnikov <alexander@kojevnikov.com>"
|
||||||
|
};
|
||||||
|
|
||||||
|
show_about_dialog (
|
||||||
|
this,
|
||||||
|
"program-name", "Spek",
|
||||||
|
"version", Config.PACKAGE_VERSION,
|
||||||
|
"copyright", _("Copyright © 2010 Alexander Kojevnikov"),
|
||||||
|
"comments", _("Spek - Audio Spectrum Viewer"),
|
||||||
|
"authors", authors,
|
||||||
|
// TODO
|
||||||
|
// "documenters", documenters,
|
||||||
|
// "artists", artists,
|
||||||
|
// "website-label", _("Spek Website"),
|
||||||
|
// "website", "http://TODO",
|
||||||
|
// "license", "GPLv3+",
|
||||||
|
"wrap-license", true,
|
||||||
|
"logo-icon-name", "spek",
|
||||||
|
"translator-credits", _("translator-credits"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user