Minor Error messages wording changes.
This commit is contained in:
parent
2d33606251
commit
d3696fc5ec
@ -46,7 +46,7 @@ pub struct App {
|
|||||||
impl App {
|
impl App {
|
||||||
pub fn new() -> App {
|
pub fn new() -> App {
|
||||||
let application = gtk::Application::new("org.gnome.Hammond", ApplicationFlags::empty())
|
let application = gtk::Application::new("org.gnome.Hammond", ApplicationFlags::empty())
|
||||||
.expect("Initialization failed...");
|
.expect("Application Initialization failed...");
|
||||||
|
|
||||||
// Weird magic I copy-pasted that sets the Application Name in the Shell.
|
// Weird magic I copy-pasted that sets the Application Name in the Shell.
|
||||||
glib::set_application_name("Hammond");
|
glib::set_application_name("Hammond");
|
||||||
|
|||||||
@ -65,15 +65,15 @@ use app::App;
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// TODO: make the the logger a cli -vv option
|
// TODO: make the the logger a cli -vv option
|
||||||
loggerv::init_with_level(Level::Info).unwrap();
|
loggerv::init_with_level(Level::Info).expect("Error initializing loggerv.");
|
||||||
gtk::init().expect("Error initializing gtk");
|
gtk::init().expect("Error initializing gtk.");
|
||||||
static_resource::init().expect("Something went wrong with the resource file initialization.");
|
static_resource::init().expect("Something went wrong with the resource file initialization.");
|
||||||
|
|
||||||
// Add custom style
|
// Add custom style
|
||||||
let provider = gtk::CssProvider::new();
|
let provider = gtk::CssProvider::new();
|
||||||
gtk::CssProvider::load_from_resource(&provider, "/org/gnome/hammond/gtk/style.css");
|
gtk::CssProvider::load_from_resource(&provider, "/org/gnome/hammond/gtk/style.css");
|
||||||
gtk::StyleContext::add_provider_for_screen(
|
gtk::StyleContext::add_provider_for_screen(
|
||||||
&gdk::Screen::get_default().unwrap(),
|
&gdk::Screen::get_default().expect("Error initializing gtk css provider."),
|
||||||
&provider,
|
&provider,
|
||||||
600,
|
600,
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user