Button: maximum icon size option

This commit is contained in:
o9000
2017-03-25 14:53:21 +01:00
parent dfd735956c
commit fc883a5dd8
13 changed files with 726 additions and 662 deletions

View File

@@ -784,6 +784,10 @@ void add_entry(char *key, char *value)
button->backend->paddingy = 0;
if (value3)
button->backend->paddingx = atoi(value3);
} else if (strcmp(key, "button_max_icon_size") == 0) {
Button *button = get_or_create_last_button();
extract_values(value, &value1, &value2, &value3);
button->backend->max_icon_size = MAX(0, atoi(value));
} else if (strcmp(key, "button_background_id") == 0) {
Button *button = get_or_create_last_button();
int id = atoi(value);