bodil / vgtk

A declarative desktop UI framework for Rust built on GTK and Gtk-rs
http://bodil.lol/vgtk/
Other
1.05k stars 36 forks source link

Updating component from the outside #92

Open fiatjaf opened 1 year ago

fiatjaf commented 1 year ago

From what I understand the only thing that calls .update() is a signal from a GTK widget. Am I right?

What I have, though, is a stream of messages coming from elsewhere (in my case a websocket) and I want to push them into the Component and trigger rerenders every time a new one appears.

How can I do that?

fiatjaf commented 1 year ago

Hmm, I see this library is not getting all the love it deserves, which is sad and unfortunate, since it is such an amazing and beautiful library. But it is also completely understandable, so I won't expect any answers to this issue.

But hopefully in the future vgtk can rise again and become great.

I'll leave this open just because I think it is an important point to be addressed in the future and a question other people might have.