Open ranfdev opened 1 year ago
Would be nice to gather a list of methods that could make use of such changes.
I counted these:
gdk4::ContentFormats::for_type
gdk4::ContentFormats::contains_type
gdk4::ContentFormatsBuilder::add_type
gdk4::ContentProviderExtManual::value
gtk4::DropTarget::new
gtk4::WidgetExt::ancestor
In general, we should provide typed methods when possible and
with_type
variants.Example:
Widget::ancestor(widget, type)
(which currently returns aOption<Widget>
) could becomeWidget::ancestor::<gtk::Label>(widget)
and directly return a typedOption<Label>
.