-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic with 'assertion failed: self.is::<T>()' #216
Comments
That's probably my fault, let's see... |
The listbox_model example from gtk-rs also does not build anymore FWIW (gtk-rs/gtk3-rs#354). I assume this can be reproduced with that example, we'll see :) |
You're missing an You can write the whole thing as follows now (note the #[derive(Debug, Default)]
pub struct SwStationModel {
pub vec: RefCell<Vec<SwStation>>,
}
#[glib::object_subclass]
impl ObjectSubclass for SwStationModel {
const NAME: &'static str = "SwStationModel";
type ParentType = glib::Object;
type Type = super::SwStationModel;
type Interfaces = (gio::ListModel, );
} |
See also the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using commit 4552124
That code snippet worked before, that was commit c430251
Complete code is available here: https://gitlab.gnome.org/World/Shortwave/-/commits/wip/haecker-felix/gtk-rs-ugprade
The text was updated successfully, but these errors were encountered: