-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "noaa-apt" | ||
version = "0.9.1" | ||
version = "0.9.4" | ||
authors = ["Martin Bernardi <[email protected]>"] | ||
|
||
[dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ use gio::prelude::*; | |
use gtk::prelude::*; | ||
use gtk::Builder; | ||
|
||
const VERSION: &'static str = env!("CARGO_PKG_VERSION"); | ||
|
||
// make moving clones into closures more convenient | ||
macro_rules! clone { | ||
(@param _) => ( _ ); | ||
|
@@ -66,6 +68,15 @@ fn build_ui(application: >k::Application) { | |
status_label.set_label("Ready"); | ||
start_button.set_sensitive(true); | ||
|
||
// Set version on footer | ||
|
||
let footer_label: gtk::Label = builder.get_object("footer_label") | ||
.expect("Couldn't get footer_label"); | ||
footer_label.set_label(format!( | ||
"noaa-apt {} | ||
Martín Bernardi | ||
[email protected]", VERSION).as_str()); | ||
|
||
// Configure decode_output_entry file chooser | ||
|
||
let decode_output_entry: gtk::Entry = builder.get_object("decode_output_entry") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters