code: Use pub(super) in GObject impl structs

This helps with getting warnings for fields we no longer use

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/143>
This commit is contained in:
Sophie Herold 2023-03-14 18:56:35 +01:00 • committed by Marge Bot
parent f64008b278
commit 889c818c14
4 changed files with 48 additions and 48 deletions

View file

@ -60,20 +60,20 @@ mod imp {
pub struct LpImageView {
/// Direct child of this Adw::Bin
#[template_child]
pub bin_child: TemplateChild<gtk::Widget>,
pub(super) bin_child: TemplateChild<gtk::Widget>,
/// overlayed controls
#[template_child]
pub controls_box_start: TemplateChild<gtk::Widget>,
pub(super) controls_box_start: TemplateChild<gtk::Widget>,
/// overlayed controls
#[template_child]
pub controls_box_end: TemplateChild<gtk::Widget>,
pub(super) controls_box_end: TemplateChild<gtk::Widget>,
#[template_child]
pub sliding_view: TemplateChild<LpSlidingView>,
pub model: RefCell<LpFileModel>,
pub preserve_content: Cell<bool>,
pub(super) model: RefCell<LpFileModel>,
pub(super) preserve_content: Cell<bool>,
pub current_image_signals: OnceCell<glib::SignalGroup>,
pub(super) current_image_signals: OnceCell<glib::SignalGroup>,
}
#[glib::object_subclass]