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:
parent
63ba595005
commit
33643d0642
2 changed files with 4 additions and 3 deletions
|
@ -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,
|
GList *rofi_theme_get_array_distance(const widget *widget,
|
||||||
const char *property) {
|
const char *property) {
|
||||||
ThemeWidget *wid2 = rofi_theme_find_widget(widget->name, widget->state, TRUE);
|
ThemeWidget *wid2 =
|
||||||
Property *p = rofi_theme_find_property(wid2, P_ARRAY, property, TRUE);
|
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 *list = rofi_theme_get_array_inside(p, widget, property, P_PADDING);
|
||||||
GList *retv = NULL;
|
GList *retv = NULL;
|
||||||
for (GList *iter = g_list_first(list); iter != NULL;
|
for (GList *iter = g_list_first(list); iter != NULL;
|
||||||
|
|
|
@ -1261,7 +1261,7 @@ END_TEST
|
||||||
START_TEST(test_prepare_array) {
|
START_TEST(test_prepare_array) {
|
||||||
widget wid;
|
widget wid;
|
||||||
wid.name = "element-text";
|
wid.name = "element-text";
|
||||||
wid.state = NULL;
|
wid.state = "normal.normal";
|
||||||
rofi_theme_parse_string("element-text { tabs: { 10, 20px, 30px, 40px };}");
|
rofi_theme_parse_string("element-text { tabs: { 10, 20px, 30px, 40px };}");
|
||||||
ck_assert_ptr_nonnull(rofi_theme);
|
ck_assert_ptr_nonnull(rofi_theme);
|
||||||
// ck_assert_ptr_null ( rofi_theme->widgets );
|
// ck_assert_ptr_null ( rofi_theme->widgets );
|
||||||
|
|
Loading…
Reference in a new issue