Commit 94995e9c authored by Carlos Garnacho's avatar Carlos Garnacho

st: Reload icon on style changes only if necessary

The parameters that may affect the icon on ::style-changed are more size
related than visual (we listen to icon theme changes for the latter). It
makes sense to just update the icon if the size came out different.

parent fb04dafb
Pipeline #78708 passed with stages
in 3 minutes and 20 seconds
......@@ -206,8 +206,8 @@ st_icon_style_changed (StWidget *widget)
priv->theme_icon_size = (int)(0.5 + st_theme_node_get_length (theme_node, "icon-size"));
st_icon_update_icon_size (self);
st_icon_update (self);
if (st_icon_update_icon_size (self))
st_icon_update (self);
static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment