-
-
Notifications
You must be signed in to change notification settings - Fork 90
FileChooser interface is not implementable #756
Comments
Support for implementing |
Ah, I see! Ok, I'll take a crack at that. Thanks for the quick reply! |
There is an implementation in gtk4-rs, you can look at it for inspiration. |
Hmm, gtk4-rs doesn't seem to have One thing I'm noticing that I don't quite understand is that some of the |
Ah yeah never mind, I was confused for a bit and thought of FontChooser.
Impl is the trait you implement in your application, ImplExt provides a way for you to chain up to the parent implementation The Impl trait is something the end user will be implementing and it does enforce the requirements while the ImplExt is implemented on the bindings side for each type T that implements the Impl trait, hence it is already indirectly enforcing the requirement that is defined for Impl trait. |
Ok, I think I understand. But I am now not sure this is doable. It looks like |
I'm trying to build my own widget and have it implement the
GtkFileChooser
interface. To myObjectSubclass
impl, I've added:However, I get the following error:
This seems to be correct; I don't see an
IsImplementable
implementation forFileChooser
. There also isn't aFileChooserImpl
trait to implement like I'd expect (though there isFileChooserExt
, but my -- perhaps incorrect -- understanding is that is for consumers, not subclassers). Am I missing something here, or is this feature not implemented?The text was updated successfully, but these errors were encountered: