Is it possible to simply make title and description selectable for libadwaita StatusPage
widget?
I can use custom widget with Label
configured, but maybe some option available I forgot to set
Here is what do I mean:
StatusPage::builder()
.description(description) // not selectable
.icon_name("dialog-error-symbolic")
.title(title) // not selectable
.build()
Builder implementation (accept GString
, not Widget
):
impl StatusPageBuilder {
// ..
pub fn child(self, child: &impl IsA<gtk::Widget>) -> Self {
Self {
builder: self.builder.property("child", child.clone().upcast()),
}
} // could be useful, if no alternatives for native title/description
pub fn description(self, description: impl Into<glib::GString>) -> Self {
Self {
builder: self.builder.property("description", description.into()),
}
} // GString
// ..