-
Notifications
You must be signed in to change notification settings - Fork 36
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
Support for TreeModel/ListStore? #59
Comments
@piegamesde Did you notice the Tutorial? Please read the #getting-started paragraph at least.
|
I read the tutorial, but several weeks before actually trying it out myself. The error message makes more sense now:
|
@piegamesde Could you create a very minimal example which shows what you are trying. A gist or a git repo would helpful. I know the gtk liststore/ treestores and I'm willing to help you here if I could. |
I sadly don't have the original code for my bug report anymore, but cloning the fn view(&self) -> VNode<Model> {
gtk! {
<Application::new_unwrap(Some("com.example.{{project-name}}"), ApplicationFlags::empty())>
<Window border_width=20 on destroy=|_| Message::Exit>
<IconView
model={Some(ListStore::new(&[]))} />
</Window>
</Application>
}
} In the end I want the icon view's content to be somehow synchronized with the internal state of the widget: when I add elements to it this should be reflected in the GUI, when I reorder them within the widget, this should trigger an update to the model |
It looks like there's a functional workaround for this, using a |
I'd like to use a
gtk::IconView
but I somehow can't set the model. I tried inputting a dummyListStore
,Option::None
and others but I always get arecursion limit reached
error. Is this even supported or is it a bug in the macro?The text was updated successfully, but these errors were encountered: