mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
remove extra getters, give name to gobjects
This commit is contained in:
parent
58f9ed537d
commit
582bef28b0
4 changed files with 16 additions and 21 deletions
|
|
@ -59,13 +59,13 @@ impl Browser {
|
|||
|
||||
action.close.connect_activate({
|
||||
let widget = widget.clone();
|
||||
move || widget.gobject().close()
|
||||
move || widget.application_window.close()
|
||||
});
|
||||
|
||||
action.debug.connect_activate({
|
||||
let widget = widget.clone();
|
||||
move || {
|
||||
widget.gobject().emit_enable_debugging(true);
|
||||
widget.application_window.emit_enable_debugging(true);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -160,7 +160,7 @@ impl Browser {
|
|||
|
||||
pub fn init(&self, application: Option<&impl IsA<Application>>) -> &Self {
|
||||
// Assign browser window to this application
|
||||
self.widget.gobject().set_application(application); // @TODO
|
||||
self.widget.application_window.set_application(application); // @TODO
|
||||
|
||||
// Init main window
|
||||
self.window.init();
|
||||
|
|
@ -168,7 +168,7 @@ impl Browser {
|
|||
}
|
||||
|
||||
pub fn present(&self) -> &Self {
|
||||
self.widget.gobject().present();
|
||||
self.widget.application_window.present();
|
||||
self
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue