1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Theme array fix inheriting.

This commit is contained in:
Dave Davenport 2022-01-24 21:50:52 +01:00
parent 63ba595005
commit 33643d0642
2 changed files with 4 additions and 3 deletions

View file

@ -1283,8 +1283,9 @@ static GList *rofi_theme_get_array_inside(Property *p, const widget *widget,
}
GList *rofi_theme_get_array_distance(const widget *widget,
const char *property) {
ThemeWidget *wid2 = rofi_theme_find_widget(widget->name, widget->state, TRUE);
Property *p = rofi_theme_find_property(wid2, P_ARRAY, property, TRUE);
ThemeWidget *wid2 =
rofi_theme_find_widget(widget->name, widget->state, FALSE);
Property *p = rofi_theme_find_property(wid2, P_ARRAY, property, FALSE);
GList *list = rofi_theme_get_array_inside(p, widget, property, P_PADDING);
GList *retv = NULL;
for (GList *iter = g_list_first(list); iter != NULL;

View file

@ -1261,7 +1261,7 @@ END_TEST
START_TEST(test_prepare_array) {
widget wid;
wid.name = "element-text";
wid.state = NULL;
wid.state = "normal.normal";
rofi_theme_parse_string("element-text { tabs: { 10, 20px, 30px, 40px };}");
ck_assert_ptr_nonnull(rofi_theme);
// ck_assert_ptr_null ( rofi_theme->widgets );