Browse Source

Fix comment for App::new

environments/review-jsparber-h-cxnwl8/deployments/1
Simon Goller 9 years ago
parent
commit
db1f086701
  1. 2
      src/app.rs
  2. 2
      src/main.rs

2
src/app.rs

@ -16,8 +16,6 @@ pub struct App {
impl App {
/// Create an App instance
///
/// Requires gtk::init() to have executed successfully.
pub fn new() -> App {
let gtk_app = gtk::Application::new(Some(APP_ID), gio::ApplicationFlags::empty())
.expect("Failed to initialize GtkApplication");

2
src/main.rs

@ -22,8 +22,6 @@ fn main() {
// let data_path = xdg_dirs.place_data_file("data.yml").unwrap();
// TODO: Read settings
// gtk::init().expect("Failed to initialize GTK.");
let app = App::new();
app.run();

Loading…
Cancel
Save