summaryrefslogtreecommitdiffstats
path: root/native/src/widget/pane_grid
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-20 11:54:42 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-20 11:54:42 +0100
commitcfc2b55e05a3dc20eae71088d0475f82e34ea36b (patch)
tree41584d4edb8dafbd64adbb6d07b8f30efad152b8 /native/src/widget/pane_grid
parent33f33ed4e32932175f1a77a0d8b59b81380ccf74 (diff)
downloadiced-cfc2b55e05a3dc20eae71088d0475f82e34ea36b.tar.gz
iced-cfc2b55e05a3dc20eae71088d0475f82e34ea36b.tar.bz2
iced-cfc2b55e05a3dc20eae71088d0475f82e34ea36b.zip
Rename `Internal::idle_pane` to `active_pane`
Diffstat (limited to 'native/src/widget/pane_grid')
-rw-r--r--native/src/widget/pane_grid/state.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/native/src/widget/pane_grid/state.rs b/native/src/widget/pane_grid/state.rs
index 0e528d90..0a8b8419 100644
--- a/native/src/widget/pane_grid/state.rs
+++ b/native/src/widget/pane_grid/state.rs
@@ -109,10 +109,7 @@ impl<T> State<T> {
/// [`Pane`]: struct.Pane.html
/// [`State`]: struct.State.html
pub fn active(&self) -> Option<Pane> {
- match self.internal.action {
- Action::Idle { focus } => focus,
- _ => None,
- }
+ self.internal.active_pane()
}
/// Returns the adjacent [`Pane`] of another [`Pane`] in the given
@@ -289,7 +286,7 @@ impl Internal {
self.action
}
- pub fn idle_pane(&self) -> Option<Pane> {
+ pub fn active_pane(&self) -> Option<Pane> {
match self.action {
Action::Idle { focus } => focus,
_ => None,