-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from smudge/gnome-support
[v0.2.0] Basic Linux support! (GNOME/GSettings only)
- Loading branch information
Showing
12 changed files
with
356 additions
and
22 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
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
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,4 +1,7 @@ | ||
fn main() | ||
{ | ||
println!("cargo:rustc-link-search=framework={}", "/System/Library/PrivateFrameworks"); | ||
fn main() { | ||
#[cfg(target_os = "macos")] | ||
println!( | ||
"cargo:rustc-link-search=framework={}", | ||
"/System/Library/PrivateFrameworks" | ||
); | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use std::sync::Arc; | ||
|
||
pub struct Locale { | ||
is_24_hr: bool, | ||
} | ||
|
||
impl Locale { | ||
pub fn initialize() -> Result<(), String> { | ||
Ok(()) | ||
} | ||
|
||
pub fn current() -> Arc<Locale> { | ||
Arc::new(Locale { is_24_hr: true }) | ||
} | ||
|
||
pub fn is_24_hr(&self) -> bool { | ||
true | ||
} | ||
} |
Oops, something went wrong.