remove extra getters, give name to gobjects

This commit is contained in:
yggverse 2024-12-12 14:35:53 +02:00
parent 58f9ed537d
commit 582bef28b0
4 changed files with 16 additions and 21 deletions

View file

@ -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
}