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

@ -43,13 +43,13 @@ mod imp {
#[derive(Debug, Default, CompositeTemplate)]
#[template(file = "../../data/gtk/properties_view.ui")]
pub struct LpPropertiesView {
pub file: RefCell<Option<glib::WeakRef<gio::File>>>,
pub image: RefCell<Option<glib::WeakRef<LpImage>>>,
pub(super) file: RefCell<Option<glib::WeakRef<gio::File>>>,
pub(super) image: RefCell<Option<glib::WeakRef<LpImage>>>,
pub metadata: RefCell<LpImageMetadata>,
pub(super) metadata: RefCell<LpImageMetadata>,
pub file_info: RefCell<Option<gio::FileInfo>>,
pub info_handle: RefCell<Option<AbortHandle>>,
pub(super) file_info: RefCell<Option<gio::FileInfo>>,
pub(super) info_handle: RefCell<Option<AbortHandle>>,
}
#[glib::object_subclass]