From a85d35d91911763e8438894e074eec597dfc2373 Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Thu, 26 May 2022 13:41:30 +0200 Subject: [PATCH] Fix some comments in overlay --- crates/eww/src/widgets/widget_definitions.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/eww/src/widgets/widget_definitions.rs b/crates/eww/src/widgets/widget_definitions.rs index af83bb40..98444edc 100644 --- a/crates/eww/src/widgets/widget_definitions.rs +++ b/crates/eww/src/widgets/widget_definitions.rs @@ -518,14 +518,11 @@ fn build_gtk_box(bargs: &mut BuilderArgs) -> Result { const WIDGET_NAME_OVERLAY: &str = "overlay"; /// @widget overlay -/// @desc a widget that places its children on top of each other. The overlay widget takes the size -/// of its first child. +/// @desc a widget that places its children on top of each other. The overlay widget takes the size of its first child. fn build_gtk_overlay(bargs: &mut BuilderArgs) -> Result { let gtk_widget = gtk::Overlay::new(); // no def_widget because this widget has no props. - // And this widget has no proprs because they would pretty much just be the same as boxes, - // so you might as well just use a box inside the widget to get them. match bargs.widget_use.children.len().cmp(&1) { Ordering::Less => { @@ -541,7 +538,7 @@ fn build_gtk_overlay(bargs: &mut BuilderArgs) -> Result { bargs.custom_widget_invocation.clone(), ) }); - // we have more than one children, we can unwrap + // we have more than one child, we can unwrap let first = children.next().unwrap()?; gtk_widget.add(&first); first.show();