mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
give name to gobject variables
This commit is contained in:
parent
702269f1f1
commit
a1617b2b1b
35 changed files with 213 additions and 209 deletions
|
|
@ -24,7 +24,7 @@ impl Back {
|
|||
|
||||
pub fn update(&self, status: bool) {
|
||||
// Update actions
|
||||
self.action.history_back.gobject.set_enabled(status);
|
||||
self.action.history_back.simple_action.set_enabled(status);
|
||||
|
||||
// Update child components
|
||||
self.widget.update(status);
|
||||
|
|
|
|||
|
|
@ -22,7 +22,10 @@ impl Forward {
|
|||
// Actions
|
||||
pub fn update(&self, status: bool) {
|
||||
// Update actions
|
||||
self.action.history_forward.gobject.set_enabled(status);
|
||||
self.action
|
||||
.history_forward
|
||||
.simple_action
|
||||
.set_enabled(status);
|
||||
|
||||
// Update child components
|
||||
self.widget.update(status);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ impl Home {
|
|||
false
|
||||
}
|
||||
};
|
||||
self.action.home.gobject.set_enabled(has_home);
|
||||
self.action.home.simple_action.set_enabled(has_home);
|
||||
self.widget.update(has_home);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ impl Reload {
|
|||
|
||||
pub fn update(&self, is_enabled: bool) {
|
||||
// Update actions
|
||||
self.action.reload.gobject.set_enabled(is_enabled);
|
||||
self.action.reload.simple_action.set_enabled(is_enabled);
|
||||
|
||||
// Update child components
|
||||
self.widget.update(is_enabled);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue