[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Re: Set CSS properties programmatically
From:       '-' <makepost () firemail ! cc>
Date:       2017-11-25 16:03:33
Message-ID: 87c6e0265e49af0262a07a392f313271 () firemail ! cc
[Download RAW message or body]

Hello,

Can you please share a link to your current approach? Doesn't sound 
efficient but makes sense. I'd like to run the code and see the 
animation in action.

On 2017-11-25 14:41, Felipe Borges wrote:
> Hi,
> 
> I have been looking for a clean way of updating my widget's css
> properties programmatically at runtime.
> 
> Basically I have a css animation which gets its properties from
> variables in my C code.
> 
> The current (working) approach I came up with is to benefit from the
> cascade and generate a whole new css definition for the animation
> every time my variable changes and use GtkStyleProvider.load_from_css
> (my_new_animation_css_spec). For this to work I need to set the
> "animation-name" to have a new and unique value, overwriting the
> previous one. This doesn't sound efficient at all.
> 
> My desire is to get the "animation" property of my class, and be able
> to update only what changes in it. It can already be done for some
> properties via GtkStyleContext.get_property.
> 
> All in all, is there a better way of doing this? Will there ever be?
> 
> Thanks,
> Felipe.
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic