summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqball <qball@Maigret.localdomain>2019-08-17 20:52:49 +0200
committerDave Davenport <qball@gmpclient.org>2019-08-17 22:57:05 +0200
commitad74da45d1ce281c5cd23aa1809c3f0cfc0c636f (patch)
treeb378079d8294ca41301a03ca1107f017c6d87259
parent245ce2a95f49a3c0be5b42aa5951fe5efaf89f5a (diff)
[Workaround] Add default icon size.
-rw-r--r--source/theme.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/source/theme.c b/source/theme.c
index b031a8a8..da3b726b 100644
--- a/source/theme.c
+++ b/source/theme.c
@@ -97,7 +97,7 @@ Property* rofi_theme_property_copy ( Property *p )
retv->value.link.name = g_strdup ( p->value.link.name );
retv->value.link.ref = NULL;
if ( p->value.link.def_value ){
- retv->value.link.def_value = rofi_theme_property_copy(p->value.link.def_value);
+ retv->value.link.def_value = rofi_theme_property_copy(p->value.link.def_value);
}
break;
default:
@@ -149,6 +149,15 @@ static void rofi_theme_insert_listview_backwards_fix ( void )
rofi_theme_widget_add_properties ( tt, table);
+
+
+ RofiDistance dsize = (RofiDistance){1.2, ROFI_PU_CH, ROFI_HL_SOLID };
+ Property *pts = rofi_theme_property_create ( P_PADDING );
+ pts->value.padding.top = pts->value.padding.right = pts->value.padding.bottom = pts->value.padding.left = dsize;
+ pts->name = g_strdup ( "size" );
+ g_hash_table_replace ( table, pts->name, pts );
+
+
rofi_theme_widget_add_properties ( ti, table);
/** Add spacing between icon and text. */
@@ -209,6 +218,10 @@ static void rofi_theme_print_distance ( RofiDistance d )
printf_double ( d.distance );
fputs ( "%% ", stdout );
}
+ else if ( d.type == ROFI_PU_CH ) {
+ printf_double ( d.distance );
+ fputs ( "ch ", stdout );
+ }
else {
printf_double ( d.distance );
fputs ( "em ", stdout );