mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00:00
[Icon] Suppport distance for size.
This commit is contained in:
parent
85279323e6
commit
245ce2a95f
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ icon * icon_create ( widget *parent, const char *name )
|
|||
b->widget.get_desired_height = icon_get_desired_height;
|
||||
b->widget.get_desired_width = icon_get_desired_width;
|
||||
|
||||
b->size = rofi_theme_get_integer ( WIDGET ( b ), "size", b->size );
|
||||
RofiDistance d = rofi_theme_get_distance ( WIDGET (b), "size" , b->size );
|
||||
b->size = distance_get_pixel ( d, ROFI_ORIENTATION_VERTICAL );
|
||||
|
||||
const char * filename = rofi_theme_get_string ( WIDGET ( b ), "filename", NULL );
|
||||
if ( filename ) {
|
||||
|
|
Loading…
Reference in a new issue