mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
StIcon: round icon size to an integer
Instead of converting a CSS-specified length to an integer by truncation, round. This means that sizes specified by converting a pixel value into non-px terms will work reliably instead of potentially being off-by-one.
This commit is contained in:
parent
68c482ec32
commit
28adc03cce
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ st_icon_style_changed (StWidget *widget)
|
|||
StThemeNode *theme_node = st_widget_get_theme_node (widget);
|
||||
StIconPrivate *priv = self->priv;
|
||||
|
||||
priv->theme_icon_size = st_theme_node_get_length (theme_node, "icon-size");
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue