hey any examples on how to make a background transparent?
antoyo
@antoyo
@oofdog: That would be more a GTK question. I believe you might have something special to do as it might also be controlled by the window manager.
oofdog
@oofdog
its ok i figured it out, i can just use css
Adib Saad
@adibsaad
Hi! Found this library about a week ago and have been playing around with it. Gotta say, it's pretty sweet
antoyo
@antoyo
Thanks!
Adib Saad
@adibsaad
One thing I'm struggling with is GTK documentation. Seems a bit old and it's hard to tell what parameters each widget type takes. Btw the examples in relm are very useful!
antoyo
@antoyo
Yeah, learning GTK is the hard part ;) .
Adib Saad
@adibsaad
Yup. This might be an easy question to you but how do you add a margin to a widget? I tried the margin_* properties but I think they're deprecated. I tried CSS but not luck either. Is it removed or something?
ok. does lock() work when you're seting the model like self.model.text_val = "something"; ?
oofdog
@oofdog
on a related note, how does relm update bind model fields to widget variables? so when self.model.text_val = "something", how does relm call .set_text(...) on the entry?
antoyo
@antoyo
@oofdog: The proc-macro will add the call to set_text() right after the assignation. So, the lock won't prevent that. It will prevent your relm Changed event to be emitted by the gtk changed signal when triggered by the call to set_text.
oofdog
@oofdog
hey, so seeing as how gitter is moving to element (matrix), could be a good idea to move this channel there?
antoyo
@antoyo
@oofdog: How is the gitter transition going to work? As far as I can tell, I have nothing to do and some day, gitter will just be a matrix server, right? Or, are you suggesting we move to matrix.org?
oofdog
@oofdog
im actually not sure tbh
oofdog
@oofdog
i suggested because the rust/gnome people are already on matrix
antoyo
@antoyo
@oofdog: I started using Matrix very recently and I like it. I don't mind moving this to Matrix.
oofdog
@oofdog
i'm down
oofdog
@oofdog
alright, make a room and post the invite link here
I'm kinda new to relm and I'm trying to figure out if there is a way to propagate events upwards from a widget (so from a child to the container). I didn't see any mention of it in the docs or the examples. Is there something I've missed or is there another mechanism to do this?