From 5f176df711896ad4e084e7f4389e8e3aa0424de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Sat, 14 Dec 2024 11:35:19 +0100 Subject: [PATCH] loading: Fix visibility --- src/components/loading/bin.rs | 8 ++++---- src/components/loading/button.rs | 11 ++++++----- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/loading/bin.rs b/src/components/loading/bin.rs index aab0e505..30b452b6 100644 --- a/src/components/loading/bin.rs +++ b/src/components/loading/bin.rs @@ -13,15 +13,15 @@ mod imp { #[properties(wrapper_type = super::LoadingBin)] pub struct LoadingBin { #[template_child] - pub stack: TemplateChild, + stack: TemplateChild, #[template_child] - pub child_bin: TemplateChild, + child_bin: TemplateChild, /// The child widget. #[property(get = Self::child, set = Self::set_child, explicit_notify, nullable)] - pub child: PhantomData>, + child: PhantomData>, /// Whether this is showing the spinner. #[property(get = Self::is_loading, set = Self::set_is_loading, explicit_notify)] - pub is_loading: PhantomData, + is_loading: PhantomData, } #[glib::object_subclass] diff --git a/src/components/loading/button.rs b/src/components/loading/button.rs index a5a7e221..30d16075 100644 --- a/src/components/loading/button.rs +++ b/src/components/loading/button.rs @@ -11,22 +11,22 @@ mod imp { #[derive(Debug, Default, glib::Properties)] #[properties(wrapper_type = super::LoadingButton)] pub struct LoadingButton { - pub loading_bin: LoadingBin, + loading_bin: LoadingBin, /// The label of the content of the button. /// /// If an icon was set, it is removed. #[property(get = Self::content_label, set = Self::set_content_label, explicit_notify)] - pub content_label: PhantomData>, + content_label: PhantomData>, /// The name of the icon of the content of the button. /// /// If a label was set, it is removed. #[property(get = Self::content_icon_name, set = Self::set_content_icon_name, explicit_notify)] - pub content_icon_name: PhantomData>, + content_icon_name: PhantomData>, /// Whether to display the loading spinner. /// /// If this is `false`, the text or icon will be displayed. #[property(get = Self::is_loading, set = Self::set_is_loading, explicit_notify)] - pub is_loading: PhantomData, + is_loading: PhantomData, } #[glib::object_subclass] @@ -155,7 +155,8 @@ mod imp { glib::wrapper! { /// Button showing either a spinner or a label. /// - /// Use the `content-label` and `content-icon-name` properties instead of `label` and `icon-name` respectively, otherwise the spinner will not appear. + /// Use the `content-label` and `content-icon-name` properties instead of `label` and + /// `icon-name` respectively, otherwise the spinner will not appear. pub struct LoadingButton(ObjectSubclass) @extends gtk::Widget, gtk::Button, @implements gtk::Accessible, gtk::Actionable; }