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. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/524
This commit is contained in:
parent
fb04dafb0b
commit
94995e9c1e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user