refactor: remove unecessarily getting the notebook in imp.rs
parent
842044ddde
commit
48c87b9214
|
@ -7,7 +7,6 @@ use sourceview::{View, Buffer, LanguageManager, };
|
||||||
use sourceview::prelude::*;
|
use sourceview::prelude::*;
|
||||||
use gtk::subclass::prelude::*;
|
use gtk::subclass::prelude::*;
|
||||||
use gtk::prelude::*;
|
use gtk::prelude::*;
|
||||||
use std::rc::Rc;
|
|
||||||
use super::menubar::MenubarImplementedEditor;
|
use super::menubar::MenubarImplementedEditor;
|
||||||
use gtk::{
|
use gtk::{
|
||||||
ApplicationWindow,
|
ApplicationWindow,
|
||||||
|
@ -185,10 +184,8 @@ impl ApplicationImpl for EchidnaEditor {
|
||||||
.object("menu")
|
.object("menu")
|
||||||
.expect("Could not get object 'menu' from builder.");
|
.expect("Could not get object 'menu' from builder.");
|
||||||
|
|
||||||
self.setup_menubar(app, window, builder);
|
self.setup_menubar(app, &window, &builder.clone());
|
||||||
let notebook: gtk::Notebook = builder
|
|
||||||
.object("echidna-notebook")
|
|
||||||
.expect("Could not get 'echidna-notebook' from builder.");
|
|
||||||
window.set_application(Some(app));
|
window.set_application(Some(app));
|
||||||
|
|
||||||
window.present();
|
window.present();
|
||||||
|
|
Loading…
Reference in New Issue